W3C home > Mailing lists > Public > www-style@w3.org > July 2012

Re: [css3-box] padding: auto

From: Marat Tanalin | tanalin.com <mtanalin@yandex.ru>
Date: Thu, 19 Jul 2012 01:25:31 +0400
To: Mike Sherov <mike.sherov@gmail.com>
Cc: Alex Mogilevsky <alexmog@microsoft.com>,Lea Verou <leaverou@gmail.com>,www-style list <www-style@w3.org>
Message-Id: <181621342646731@web25e.yandex.ru>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:57 GMT