View Single Post
Old 06-06-2009, 07:51 AM  
TheDoc
Too lazy to set a custom title
 
TheDoc's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: Currently Incognito
Posts: 13,827
Quote:
Originally Posted by kenny View Post
http://www.w3schools.com/tags/att_div_align.asp

Compatibility Notes

The align attribute of the div element was deprecated in HTML 4.01 and is not supported in XHTML 1.0 Strict DTD.

Use CSS instead.

CSS syntax: <div style="text-align:center">


None if it centers the whole webpage anyway..


My example returns complaint... The div align=center centers a div, which centers the entire webpage. Using less html and css than any other method, that returns complaint.

It not returning complaint in xhtml strict, which I don't have anything that uses that, so I'm not really worried about it.

My example does use less bytes of data, it works in every browser - every time, and it returns complaint for me, every single time.
__________________
~TheDoc - ICQ7765825
It's all disambiguation
TheDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote