You are here: Re: text-align: center in xhtml? « HTML « IT news, forums, messages
Re: text-align: center in xhtml?

Posted by David Dorward on 11/11/05 08:41

Beck wrote:

> I have quite a bit of a problem.. I cant align my content to center with
> css in the xhtml 1.1 strict doctype?

There is no XHTML 1.1 strict Doctype.

There is XHTML 1.1 ... which is mostly pointless as it lacks the "Can be
served as text/html profile", which makes it pretty much useless (goodbye
MSIE, goodbye Googlebot, etc).

There is XHTML 1.0 Strict ... which is also mostly pointless as Appendix C
is silly, and if you use it then you can no benefits over HTML 4.01, but a
couple of problems.

My guess is that your choice of Doctype is triggering standards mode in your
browser and text-align: center has stopped centring block content.

See http://dorward.me.uk/www/centre/


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация