[TESTCASE] centering tables in divs

Jos van den Oever oever at fenk.wau.nl
Tue Sep 24 07:23:36 BST 2002


This should put your table in the center:

table {
        margin-left: auto;
	margin-right: auto;
}

This works for mozilla, konqueror 3 and opera.

Best regards, Jos

On Monday 23 September 2002 22:44, Martijn Klingens wrote:
> Try centering a table in a div with CSS in Konq... It might be possible
> using another CSS option that I forgot about, but I found at least one
> real-world web page that uses 'text-align=center' which doesn't work in
> Konq, but does work in IE.
>
> See attached testcase.
>
> Not sure whether IE is right or not, but with code using it I am inclined
> to ask for compatibility. Other opinions (with argumentation) are of course
> welcome :)






More information about the kfm-devel mailing list