4 replies [Last post]
benny
Offline
Enthusiast
Last seen: 15 years 6 weeks ago
Joined: 2004-08-24
Posts: 64
Points: 0

Hi guys...

I'm a littlebit confused right now...
Does the IE interprets the box model right or not?

with this doctype

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

it does not,
and with this doctype

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

it does, or what the hell ??
Do i need the tan-hack for IE 6, or for what browsers do I need it then ?

And what doctype should be used/is the best?
Hope you can answer my questions,
greets,
ben

Ps: Is it possible to install IE5 simultan ?

co2
co2's picture
Offline
Leader
UK
Last seen: 14 years 33 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

Does f***ing IE interprets box model right or not???

Quite simply, IE5 and 5.5 got the box model wrong. Both with a correct DOCTYPE and without.

IE6 implements it correctly.

However, you should be using the second DOCTYPE since, the first will throw it into 'Quirks mode'. Which means, it won't interpret the HTML/CSS correctly.

So, with IE6 and the full DOCTYPE, the box model is correct and will not need any hack. IE5 and 5.5 will, regardless of a correct DOCTYPE.

Smile

The next sentence is true. The previous sentence is false. Discuss...

seb
Offline
Enthusiast
Last seen: 15 years 44 weeks ago
Joined: 2003-09-20
Posts: 208
Points: 0

Does f***ing IE interprets box model right or not???

co2, you know all of that voice-family cack for the BM hack, do you use that? I just use the much simpler "w\idth" etc hack - I can't help but think I must be missing something since loads of people still seem to use the voice stuff - is my w\idth going to be breaking other browsers? Seems to work fine in most everything I've tried?

co2
co2's picture
Offline
Leader
UK
Last seen: 14 years 33 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

Does f***ing IE interprets box model right or not???

Good question... to be honest, I have only ever found use for the w\idth style hack as well, and too I've found to be fine in all occurences.

The best description on the subject is here: http://css-discuss.incutio.com/?page=BoxModelHack

It covers all the hacks. THe bottom of the page gives the pros and cons of each.

The next sentence is true. The previous sentence is false. Discuss...

seb
Offline
Enthusiast
Last seen: 15 years 44 weeks ago
Joined: 2003-09-20
Posts: 208
Points: 0

Does f***ing IE interprets box model right or not???

Ah yes...:

Quote:
SBMH
This works, but breaks fatally on NS4 effectively disabling the entire stylesheet. It also affects Op5 and Konqueror

I guess my not-giving-a-crap about NS4 explains why I use the SBMH Smile Konqueror a little concerning though, can someone with experience speak on the subject?