Forum Moderators: not2easy
With a 10px DIV with a 1px border...8px should be inside of the DIV and not part of the border. No other tags or code are involved...
How do I make the DIV exactly 10px in all three browsers?
Google 'tantek box model hack' to find more info on this problem. I just design for firefox, which in general is the most standards-compliant, insert a stylesheet for ie with conditional comments, and let opera be slightly different (apple browser uses KHTML and is usually more standards compliant too, like firefox).
* html YOURSELECTOR {
width: IE5.x WIDTH VALUE;
w\idth: ORIGINAL COMPLIANT WIDTH VALUE;
}
The first width gives IE the width for it's broken box model. The second width with the escape backslash feeds the proper width back to IE6 in Standards mode.