damon2003
05-30-2009, 05:21 AM
When you use auto for margins for a container, the container is centered, why is this?
thanks,
thanks,
|
Click to See Complete Forum and Search --> : Can someone explain how auto and inherit values work damon2003 05-30-2009, 05:21 AM When you use auto for margins for a container, the container is centered, why is this? thanks, David Harrison 05-31-2009, 05:24 AM Read the spec:If both 'margin-left' and 'margin-right' are 'auto', their used values are equal. This horizontally centers the element with respect to the edges of the containing block.The whole of section 10.3 is given over to "calculating widths and margins". webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |