Click to See Complete Forum and Search --> : Center tags
dennic
07-04-2003, 04:59 AM
I am creating a web page in VB.NET and it says that the center tags are now outdated according to the www consortium, what has it been replaced with, i have tried to find out at 'www.w3.org' but that site is way to big and is not helping me at all.
Can anyone tell me what is the replacement?
thanks
hastx
07-05-2003, 09:30 AM
<div align="center"></div>
is what i've seen a lot of lately instead of center tags.
jeffmott
07-05-2003, 11:22 AM
<div align="center"></div>
is what i've seen a lot of lately instead of center tags.Except the align attribute is also deprecated and defeats the purpose of not using the center element. If an element does not change the actual content or define the structure of the page then it is a stylistic element and should be replaced with CSS.
<div style="text-align: center"></div>