Results 1 to 3 of 3
Thread: Width percentage in FF and IE
Nov 9, 2006, 20:00 #1
Width percentage in FF and IE
I have a div with, say, an 90% width. It seems a little bigger in FF than in IE.
If you go to http://www.w3schools.com/html/tryit....=tryhtml_basic and test <div style="width: 90%; height: 50px; border: 1px #000 solid"></div>
, flick back and forth between them and the div takes up different widths. What's the deal?
Nov 9, 2006, 20:11 #2
- Join Date
- Oct 2005
- Brisbane, QLD
- 0 Post(s)
- 0 Thread(s)
They've got no doctype on their page which means IE is in quirks (broken box) model mode. With the correct box model, total width = width + margin + padding + border. With the broken box model, width = width only.
Nov 9, 2006, 20:24 #3Originally Posted by Tyssen