[TESTCASE] centering tables in divs
Vadim Plessky
lucy-ples at mtu-net.ru
Wed Sep 25 10:10:01 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?
|
| Besides, it doesn't fix the web pages out there that use text-align :(
|
ok, please test attached (modified) tetscase.
There are 2 more variants which work ok in Konq.
Not tested in MS IE, though.
---------------------------------------------------------
<p>Var.B - This blue table is centered inside the red div in both browsers</p>
<div style="width: 100%; background: red">
<div align="center">
<table style="background: blue" width="75%">
<tr>
<td>Text</td>
</tr>
</table>
</div>
</div>
<br>
<p>Var.C - This blue table is centered inside the red div in both browsers</p>
<div style="width: 100%; background: red">
<table align="center" style="background: blue" width="75%">
<tr>
<td>Text</td>
</tr>
</table>
</div>
---------------------------------------------------------
May be, this will help a little bit :-)
| 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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20020925/daceece0/attachment.html>
More information about the kfm-devel
mailing list