Jean-Marc Lasgouttes wrote:

>>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
> 
> Lars> | Hints?
> 
> Lars> I do not get what you mean.
> 
> Did you see the table in news that shows the gmane groups? I want to
> keep the same effect, but with conforming xhtml.
> 
> Lars> cascading might help
> 
> I get I will get rid of the table altogether. This thing is just too
> annoying.
> 
> JMarc

JMarc, I did a search on google for (XHTML "center table") and came up with 
this:
-----------------------------------------------------------------------------
http://216.239.39.100/search?q=cache:cLTj7dce_1gC:www.debin.net/2002/11/aligntable/+XHTML+%22center+table%22&hl=en&ie=UTF-8

How to center a <table> in XHTML Strict ?

In XHTML Strict, something like <center><table>...</table></center> or 
<table align="center">...</table> is forbidden (because of the deprecated 
<center> tag and the forbidden align="center" in <table>).

With Mozilla you can use the CSS style table { margin-left:auto; 
margin-right:auto; } but it doesn't work within Microsoft Internet Explorer 
(MSIE).

The only thing which works both in Mozilla and in MSIE is wrapping the 
<table> in another <table> (align="center" being allowed within <td> tag) :

<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td 
align="center"><table>...</table></td></tr></table>

It's not so nice but it works !
-----------------------------------------------------------------------------
Alternatively, this page shows you how to do it by defining the appropriate 
CSS, which is presumably the right thing to do.

http://www.granneman.com/webdev/coding/css/centerta/index

-- 
Angus

Reply via email to