Mark Lundquist wrote:
>> #sidebar {
>>      display: inline;
>>      ...
> 
> What's the purpose of the "display: inline" in this case?

Should have commented it.

It is a hack to fix IE/win's 'margin-doubling on floats' bug. Without
this hack IE6 and older win-versions will make the 29px right margin
twice as big - 58px, and ruin the entire line-up.

This hack doesn't disturb other browsers because a float is a
block-element which can't be turned into an inline-element. That's why
we usually don't feed this hack to IE/win only, but leave it "in the open".

It would otherwise make sense to create a new style with something like...
* html #sidebar {display: inline;}
...and place it after the normal styles for #sidebar. I've seen cases
where such a separation was necessary, but not in this case.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to