On Thu, 9 Dec 2004 20:52:02 +0100, Olav Tollefsen <x@y.com> wrote:
"Steve Pugh" <st***@pugh.net> wrote in message
news:74********************************@4ax.com... On Thu, 9 Dec 2004 19:52:06 +0100, "Olav Tollefsen" <x@y.com> wrote:
How do I center everything contained in a <div> tag using XHTML 1.1?
Same way you would in any of the versions of (x)HTML that actually
work on the www.
Inline content is centered via the CSS property text-align: center;
applied to the div itself.
Block level children are centered via the CSS properties margin-left:
auto; and margin-right: auto; applied to the child elements.
So, it's no direct equivalent in the XHTML 1.1 strict <div> tag to <div
align="center">?
If you have to ask that, why, if I may ask, are you going to use XHTML 1.1
strict?
--
Weblog | <http://home.wanadoo.nl/b.de.zoete/_private/weblog.html>
Webontwerp | <http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html>
Zweefvliegen | <http://home.wanadoo.nl/b.de.zoete/html/vliegen.html>