Previous Message
Next Message

containing margins

Sent by Climis, Tim on 11 December 2009 18:06


Vince wrote:
> From the w3 link below:
>> In CSS 2.1, horizontal margins never collapse. 
>I just recently learned this one myself.  Even IE doesn't collapse the horizontal margins... IE
just messes up the padding.

Upon further examination this morning, the horizontal space that I thought was a collapsing margin
was really padding that I thought I removed, but didn't really.  Oops.

Alan wrote:
> Change this,
> .person {margin: 2em auto 0;}
> to this.
> .person {margin: 0 auto;}

While I admit that that _does_ make the lines connect, it also makes the divs not have any space
between them, and I'd kind of like to have the white space. ;)

But, for anyone that's curious, I'm pretty much there. I just have minor clean up left.  The fix was
to float the people, unfloat the directors, and then overflow: hidden on the container list items.

Thanks for the help.

---Tim
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: