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

RE: [css3-box] padding: auto

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Tue, 17 Jul 2012 19:00:16 +0000
To: Lea Verou <leaverou@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <2C86A15F63CD734EB1D846A0BA4E0FC83CD86C0F@CH1PRD0310MB381.namprd03.prod.outlook.com>
 From: Lea Verou [mailto:leaverou@gmail.com] 
 Sent: Monday, July 16, 2012 4:08 PM
 Basically, what's needed is an `auto` value for padding, that makes it 
 behave as `auto` does for margin. In the latest ED there *is* a new 
 `auto` value allowed for the padding properties [1], but the way it's 
 supposed to work is not explained anywhere.
Auto padding may create a new problem of what happens if there is no extra space and padding is shrinking to zero, which is rarely an acceptable value for padding.

I looked at all your links (good collection btw) and all but one (Perch) have extra padding that wouldn't be there if they just had "padding:auto".

It seems that if "padding:auto" is added, we'll also need 'min-padding'. Which may be reasonable.

Or... if generated content is extended to make it possible to add a wrapper to any element, that would make the same result possible:

	body::around { 
		min-height: 100vh;
	body { 
		margin:10 auto; 
		max-width: 40em; 

I believe this kind of generated content has been discussed, but I can't point to any discussion or proposal.....

Received on Tuesday, 17 July 2012 19:01:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:19 UTC