[thelist] css percentages

Geoff Sheridan web2k2 at premonition.co.uk
Tue Feb 25 09:46:01 CST 2003

At 12:02 pm +0000 25/2/03, Anthony Johnston - Antix wrote:
>is there a dtd which will make netscape/opera adhere to the box
>model with internalized borders, as IE does by default?

No. The box model used by IE PC 5.x is wrong, according to the W3C
specs. You can get IE5.x to display the boxes correctly using the
hacks I suggested earlier:
You cannot easily get all the other browsers to display it wrong.

IE6 PC displays the box model correctly (external borders) when using
a valid recent doctype.

As for two 50% boxes with borders, try:

(four solutions - depending on your real-world application there are
likely to be many more possible)


More information about the thelist mailing list