Re: [WSG] Centering Elements

2008-04-10 Thread David Dorward


On 10 Apr 2008, at 05:19, Spirit Q.9 Gaming wrote:
margin: 0 auto; or the margin-left: auto; margin-right: auto; just  
the same for horizonal center. But i think it needs text-align:  
center for working with IE.



Only if you really need to support IE5.5 and earlier, which most  
people don't do since they have an insignificant market share.


http://dorward.me.uk/www/centre/#ie

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



[WSG] Centering Elements

2008-04-09 Thread Chris Kennon

Hi,

I yet to devise an elegant solution centering all elements within  
div#innerContainer. Would a gifted Standardista offer an elegant  
backward compatible solution?


CK


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Centering Elements

2008-04-09 Thread Chris Kennon
The uri is here: http://working.bushidodeep.com/spring_2008/ 
template.html

On Apr 9, 2008, at 3:31 PM, Chris Kennon wrote:

Hi,

I yet to devise an elegant solution centering all elements within  
div#innerContainer. Would a gifted Standardista offer an elegant  
backward compatible solution?


CK


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Centering Elements

2008-04-09 Thread Patrick H. Lauke

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
--
Patrick H. Lauke
__
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com
__
Co-lead, Web Standards Project (WaSP) Accessibility Task Force
http://webstandards.org/
__


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Centering Elements

2008-04-09 Thread russ - maxdesign
Try this explanation:
http://www.maxdesign.com.au/presentation/center/

HTH
Russ


on 10/4/08 8:31 AM, Chris Kennon at wrote:

 Hi,
 
 I yet to devise an elegant solution centering all elements within
 div#innerContainer. Would a gifted Standardista offer an elegant
 backward compatible solution?
 
 CK
 




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Centering Elements

2008-04-09 Thread Chris Broadfoot

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]
***



Re: [WSG] Centering Elements

2008-04-09 Thread Spirit Q.9 Gaming
Hi Patrick, don't know your way can work fine with IE?

margin: 0 auto; or the margin-left: auto; margin-right: auto; just the same
for horizonal center. But i think it needs text-align: center for working
with IE.

If you use text-align: center; just use text-align: left at which you need
its text be aligned left, is it right?

On Wed, Apr 9, 2008 at 6:19 PM, Chris Broadfoot [EMAIL PROTECTED]
wrote:

 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]
 ***




-- 
http://spirit.q9-gaming.com/en/
Spirit's Inside: Blog  Design


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***