using this hack for ages now problem..

6 Replies - 996 Views - Last Post: 19 June 2009 - 05:53 PM

FF and IE hack weird problem

Posted 18 June 2009 - 03:16 PM

Hi

I've stumbled into a weird css problem.
I've got 2 hacks one for IE6 and below and one for IE7.
Now it seems the hack is also read by firefox, in other websites I don't have this problem only in this new website.

The first one is for ff, second one for IE6 and third one for IE7.
If I use this css the margin in firefox is 0 0 0 0 so any ideas why this happens only on this website?

Re: FF and IE hack weird problem

Also - you shouldn't be using hacks in the first place. Mainly because when said browsers become aware of the hacks they usually fix them. You should utilize conditional comments set in place by IE (because they know how screwed up their browser is). This allows you to single out a browser - but it also maintains that it will work in the future as this is a feature - not a hack.

Re: FF and IE hack weird problem

Posted 19 June 2009 - 02:43 PM

So is it possible to make a css for the whole page and than another css file with only the changes that need to be done(the fixes). So ie will overwrites the style or doesn't it work like that? because my fixes are most of the time just a few.