|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
I can hardly believe my eyes. Maybe I'm doing something wrong...
I have a div with 5px borders and 5px padding on each side. My php does a browser detect, and pulls the appropriate css file. In the IE stylesheet, I have the div's width set to 820px (800px + 5px + 5px +5px + 5px = 820px) as described as part of the Tan Box Hack (which wasn't working right for some reason). In the Mozilla stylesheet, I have the width set to 800px, because, well, that's how wide it's supposed to be. Now, when I open IE6 and Firefox, and send them both to the page, IE renders the box somewhat larger than the box in FF. What's even stranger is, when I set the width in the IE stylesheet to 800px, it renders correctly, matching the width rendered by FF. Any thoughts on this? I can post my code if you really wanna see it, but I figured you'd all understand what I'm trying to describe...
__________________
Proud member of the T.S.N.B.U.F.L (tables should not be used for layout) alliance. "Only use elements for their intended purpose. You wouldn't try to make coffee with a telephone, would you?" -Me |
|
#2
|
||||
|
||||
|
If you are using a doctype that triggers standards compliant mode, IE6 uses the W3 box model. The box model hacks can still be applied to IE5.x. Personally, I always use a strict doctype and usually don't have to worry about it.
cheers, gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing. My html and css workshop, demos and tutorials. Ask a better question, get a better answer. |
|
#3
|
||||
|
||||
|
Ohhh... Ok. I'm just so used to seeing IE run in quirks mode, I guess. It's good to know IE does work correctly sometimes. Thanks!
![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > IE working correctly??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|