Forum Moderators: not2easy

Message Too Old, No Replies

Why are different width values used?

         

spyder_tek

3:06 am on Apr 20, 2006 (gmt 0)

10+ Year Member



Hi,

When taking a look at some menus that use hacks for different browsers, why are different width values used?

For example, here's part of a vertical menu from Eric Meyer's "Strengthening the links" (IE HACK) menu:


ul#navlist li a
{
display: block;
[b]width: 122px;[/b]
[b]\width: 158px;[/b]
[b]w\idth: 122px;[/b]
padding: 4px 8px 4px 8px;
border: 0px;
border-left: 20px solid #aaaabb;
background: #ccccdd;
text-decoration: none;
text-align: right;
}

for \width it's 158px, yet for the other two it's 122px.

Thanks.

chrisrock79

5:04 am on Apr 20, 2006 (gmt 0)

10+ Year Member



It's because IE incorrectly sets the width of the box.

See this post for more info:
[webmasterworld.com...]

spyder_tek

12:45 am on Apr 21, 2006 (gmt 0)

10+ Year Member



That was most helpful. Thanks!