What is the difference between declaring width at 100% or auto? I guess what I'm more interested in is why you'd want to use one or another with certain browsers.

I was studying the css at yahoo mail's site (still amazes me) and noticed that they're using a selector hack to override the width for certain browsers:

div.sidebar div{width:100%;}
html>body .sidebar div{width:auto;}

What is the difference between the 100% and the auto? I'm guessing there is some kinda quirk at play here and I'd really like to know what it is.

I also noticed that they do this:

.modulecontainer div{border-style:solid;border-width:1px;margin:-2px -8px;height:1em;}

html>body .modulecontainer div{height:auto;}

notice that they override in the height. However, in this case it's 1em vs auto. Why are they doing this?

I'd appreciate any input!

Thanks!
Mike
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to