Re: [css3-box] padding: auto

18.07.2012, 05:42, "Mike Sherov" <mike.sherov@gmail.com>:
> 1. How does padding:auto respond to over constrained boxes?

What is overconstrained box?

> 2. How does padding:auto interact with margin:auto?

`margin:auto` centers box if its outer width (content width + padding + border) is less than content width of its parent. With `padding:auto`, outer width of the box is equal to 100% of content width of the parent, so `margin:auto` most likely should not have any effect if element has `padding:auto`.

Received on Wednesday, 18 July 2012 21:26:04 UTC