Patrick H. Lauke wrote:
Chris Kennon wrote:
I yet to devise an elegant solution centering all elements within
div#innerContainer. Would a gifted Standardista offer an elegant
backward compatible solution?
div#innerContainer { text-align: center; }
div#innerContainer * { margin-left: auto; margin-right: auto; }
?
P
Chris,
Be careful, this will also center all the text for all the elements
inside #innerContainer.
Also, I'd use
div#innerContainer > * {
margin: 0 auto;
}
instead.
Cheers,
Chris.
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************