[TESTCASE] centering tables in divs

Vadim Plessky lucy-ples at mtu-net.ru
Wed Sep 25 10:08:15 BST 2002


On Tuesday 24 September 2002 11:55 am, Martijn Klingens wrote:
|  On Tuesday 24 September 2002 08:23, Jos van den Oever wrote:
|  > This should put your table in the center:
|  >
|  > table {
|  >         margin-left: auto;
|  > 	margin-right: auto;
|  > }
|  >
|  > This works for mozilla, konqueror 3 and opera.
|
|  And for IE?

It's well known that MS IE can't handle {margin-left: auto; margin-right: 
auto}
But this indeed recommended practice to center div's (and other block-level 
eleements) on the page

|
|  Besides, it doesn't fix the web pages out there that use text-align :(

text-align works on _inline_ elements, not on _block_ elements.
You are mixing different things here.

|
|  I take it that the text-align is an IE-specific bug that cannot be added
| to Konqueror without violating standards?

-- 

Vadim Plessky
http://kde2.newmail.ru  (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/






More information about the kfm-devel mailing list