CSS debug help
- Started
- Last post
- 2 Responses
- jevad
http://www.tidalwavedigital.com/…
Looks fine in everything but Opera - where the padding is falling 10px short...but if I make the div's 10 px longer (which fixes it) - it knocks it off in nutscape/mozilla.
And lets not mention IE5.2 on a mac..although safari is fine
:(
- billyFUN0
I don't use opera, so I dunno if this is what's causing the problem, but I suspect it is...
The content of your divs is larger than the width and height values you specify in your style sheet. For instance, the 'logos' div is given a width of 740px with a ten pixel border on either side, this means that the actual area for content in the div is 720px(740-10-10). IE 5pc and IE 5,5pc use this incorrect box model. Mozzilla seems to be emulating this bug since you used a short doctype.
Anyway, to solve your problem, I'd suggest using a long doctype, the w3c box model, and Tantek Celik's ie5pc box model hack.
This should solve the problems in ie5mac too.
- jevad0
thanks mate - very useful!