469,568 Members | 1,430 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,568 developers. It's quick & easy.

what to use rather than deprecated "align"

Whats the replacement for align="center" on a div ?

Many thanks in advance,

Aaron
Dec 27 '06 #1
4 1614
On 2006-12-27, Aaron Gray <an********@gmail.comwrote:
Whats the replacement for align="center" on a div ?

Many thanks in advance,
style="text-align: center"
Dec 27 '06 #2
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
On 2006-12-27, Aaron Gray <an********@gmail.comwrote:
Whats the replacement for align="center" on a div ?

Many thanks in advance,

style="text-align: center"
Or, in some circumstances, give a width to the div and auto
margin left and right.

--
dorayme
Dec 27 '06 #3
"dorayme" <do************@optusnet.com.auwrote in message
news:do**********************************@news-vip.optusnet.com.au...
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
>On 2006-12-27, Aaron Gray <an********@gmail.comwrote:
Whats the replacement for align="center" on a div ?

Many thanks in advance,

style="text-align: center"

Or, in some circumstances, give a width to the div and auto
margin left and right.
I tried this but it did not seem to work.

Aaron
Dec 28 '06 #4
In article <4v*************@mid.individual.net>,
"Aaron Gray" <an********@gmail.comwrote:
"dorayme" <do************@optusnet.com.auwrote in message
news:do**********************************@news-vip.optusnet.com.au...
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
On 2006-12-27, Aaron Gray <an********@gmail.comwrote:
Whats the replacement for align="center" on a div ?

Many thanks in advance,

style="text-align: center"
Or, in some circumstances, give a width to the div and auto
margin left and right.

I tried this but it did not seem to work.

Aaron
You need to distingish between the div itself and the text within
it. A div can be centered yet the text not. Did you give a URL?
Anyway, I'm off to the beach... I swear to God, right now, you
folks in the northern hemi would just swoon to see what a day it
is in Sydney right now.

--
dorayme
Dec 28 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.