Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mozilla Vs Ie

Featured Replies

hello everyone

 

could anybody tell me that , if i use css , do i need to write any codes for both the browsers.

 

i mean it should open in both the browsers without any problem, with all the styling, perfectly.

 

when i preview in both the browsers, only mozilla is supporting css. Where IE is opening with broken links and links colors.

 

thanks in advance.

Hi wadheanand,

 

The majority of CSS will work in IE and Firefox (Mozilla) without you needing to do anything special. There are only a small number of cases where you will have to tweak the CSS for it to display correctly in IE (6 usually).

 

If you could provide us with a link to the broken page, I'm sure someone will work out what has gone wrong for you.

 

Rob

Hi wadheanand,

 

This is very simple actually what happens is that the default styles of elements set for the Browsers ( Firefox, IE, Safari, Opera etc.) are different.

 

For example the element <p> has a default margin which varies from browser to browser. So what you need to do is just make the default value of the elements to 0. Below is the code check it

 

a, p, img, H1, H2 {
margin:0;
padding:0;
}

 

When you use the above code in CSS then the default values ( for which problems occur in cross browser ) becomes 0. now you give your style below and the style which you assign to the element this will be shown in all Browsers without any problem.

For eg, let us take the a element as its color varies from browser to browser.

a {
color:#000;
text-decoration:none;
margin:0 0 20px;
}
a:hover {
color:#666;
text-decoration:underline;
}

Now in above the element <a> is assigned a style for all links of the page and this will be same in all browsers.

 

let me know if its clear to you or not...

  • Author
Hi wadheanand,

 

This is very simple actually what happens is that the default styles of elements set for the Browsers ( Firefox, IE, Safari, Opera etc.) are different.

 

For example the element <p> has a default margin which varies from browser to browser. So what you need to do is just make the default value of the elements to 0. Below is the code check it

 

a, p, img, H1, H2 {
margin:0;
padding:0;
}

 

When you use the above code in CSS then the default values ( for which problems occur in cross browser ) becomes 0. now you give your style below and the style which you assign to the element this will be shown in all Browsers without any problem.

For eg, let us take the a element as its color varies from browser to browser.

a {
color:#000;
text-decoration:none;
margin:0 0 20px;
}
a:hover {
color:#666;
text-decoration:underline;
}

Now in above the element <a> is assigned a style for all links of the page and this will be same in all browsers.

 

let me know if its clear to you or not...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.