[TESTCASE] centering tables in divs

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


On Wednesday 25 September 2002 2:56 pm, Martijn Klingens wrote:
|  On Wednesday 25 September 2002 11:08, Vadim Plessky wrote:
|  > text-align works on _inline_ elements, not on _block_ elements.
|  > You are mixing different things here.
|
|  Not me, the web page authors :/
|  (And the IE programmers, unfortunately.)
|
|  And besides, if you want to use CSS and margin:auto doesn't work, what
| would you pick if you didn't know about Konqueror? ;-)

I think something like:

<div style="margin-left: 15%; margin-right: 15%">
This text takes 70% of width
<div>
should work in most cases.
Major problem with MS IE is 'auto', which is calculated in a wrong way.

Sometimes adding 'padding' also helps a lot.
As about menues - #menu {float: left; width: 135px }  helps a lot.
(assuming that margin-left is at least 135px for main text)

-- 

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