Click to See Complete Forum and Search --> : Multiple Browsers and Versions


ldoodle
01-15-2010, 08:18 AM
Hiya,

I've cheated a little bit by having seperate (duplicated) style sheets for each browser and version (ie6_styles.css, ie7_styles.css etc), then use ASP to detect what browser is being used and apply the right one. This is getting to time consuming to maintain changes to them.

So, for the minor differences that are required is it possible to put something in the CSS file itself, that applies say a height of x to IE8 and a height of z for IE7?

Thanks

ldoodle
01-15-2010, 09:31 AM
OK, more specifically i'm having a 1px difference in IE7 and IE8.

If you look at the attachment, it has the same layout twice. Only in IE8 there is no gap (which should be the 1px i'm referring to) between the menu border and the Absences border.

You'll also notice the word Absences is not aligned properly in IE7.

The top one in the image is IE7, with the bottom being IE8.

Fang
01-15-2010, 12:43 PM
Valid DTD?