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.