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.

How do you do with browser compatibility

Featured Replies

Hi I'm developing a web tool but I'm having trouble with css compatibility accross different browsers.

 

First question actually is, do you prefer inline css ou in a different file, I prefer in a different file and then putting the reference with:

 

<link rel="stylesheet" type="text/css" href="index.css"/>

 

But the problem is that some css code work fine to firefox and it doesn't for internet explorer, and viceversa.

 

Just to illustrate, if I have a <div> in my page and that div has border-left and border-right properties with "1px solid" as value,

in firefox I have to shrink 2 pixels from the width of the div otherwise it would be bigger then the image above it...

 

Like this:

top_image.jpg has 800px

 

in Firefox I have to put width to 798 pixels due to the borders

but in Internet explorer I leave it with 800 pixels

 

Maybe I'm doing a newbie mistake in my css, but apparently I have to do one indexFF.css and one indexIE.css to fix this, and other, problems...

 

Any help, tip or comment would be appreciated.

  • 2 weeks later...

What i find is that IE that is all IE adds padding and margin to everything wither you tell it to or not and firefox does not.

 

the best way to look at it is firefox shows you your code how it is writen and IE shows you how it thinks you want to see the code.

 

make sure u set padding and margin to 0px

that helps alot

What i find is that IE that is all IE adds padding and margin to everything wither you tell it to or not and firefox does not.

 

the best way to look at it is firefox shows you your code how it is writen and IE shows you how it thinks you want to see the code.

 

make sure u set padding and margin to 0px

that helps alot

 

I totally agree with you.

I hate the way IE "unfixes" your coding, which is why I prefer to work always with Firefox (though I do check within other browsers and keep check on the design and layout)

Keep the #body paddings and margins set at 0 and just add the margins and paddings to each <div> sections as required. Usually works best for me personally.

 

Cheers......Jay

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.