Brian wrote:
B> It's a mistake to use px instead of em for width of boxes that
contain
B> text, for reasons discussed in ciwas numerous times.
Ok. I remember discussions about not using px for font-size, but not box
width. I'll do a search on that.
B> Note that IE 6 in "quirks" mode emulates the bugs of IE 5.x,
including
B> screwing up the box model width and height.
Omitting the DTD would throw IE6 into quirks mode, right? In this case,
I'm assuming that we're not in quirks mode.
In other words if NN7 and Opera are inheriting the width for the LI
A from the DIV
B>
B> Hmm. You've lost me here. I don't see any width inheritance issue.
B> In your css, I see
B> #button li a {
B> /* other styles deleted */
B> width: 100%;
B> }
B> html>body #button li a {
B> /* other styles deleted */
B> width: auto;
B> }
B> The width of div#button is 170px. The width of the a element, which
B> you've suggested should be displayed as block, has a width of 100%
for
B> IE6 and lower, and auto for N7 and O.
I made the mistake here of just pasting in code without really
re-reading the article. From a list apart...
"There is one workaround in this part of the style sheet. To make the
links active for the full width of the DIV, I made them display: block;.
This works for everything but IE/Windows. If you give the block an
explicit width of 100%, then IE/Windows plays along. But doing this
creates problems with IE5/Mac and Netscape/Mozilla. So I used the child
selector“>” to redefine the width to auto. Since IE/Windows doesn’t
understand child selectors, it ignores the rule. IE5/Mac, Opera and
Netscape/Mozilla follow the rule, and everyone is happy."
So if I'm following your point, NN and Opera are using width:auto and
IE/Windows is using width:100%. Since IE5 has the Box Model problem,
100% = 170px, it will put the padding and border into the 170
(incorrectly) but IE6 will not, making the menu too wide. And, the fact
that NN and Opera are using a different style for width explains why
they're not displaying like IE6.
Still not clear, tho, on how it would be possible to avoid using px as
units if you want a fixed widht menu.
Thanks for the help,
--williamc