[Webkit-unassigned] [Bug 6262] New: Centering table within a absolute positioned div does not work

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Tue Dec 27 14:45:36 PST 2005


http://bugzilla.opendarwin.org/show_bug.cgi?id=6262

           Summary: Centering table within a absolute positioned div does
                    not work
           Product: WebKit
           Version: 412+
          Platform: Macintosh
        OS/Version: Mac OS X 10.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: L.B.Kruijswijk at inter.nl.net


Hi All,

I am checking my website with safari, but I can't in any way center
a table (the whole table) within a div that is positioned absolutely.

This is really irritating, because I can't find a good work arround.

The code is like this (I am using strict XHTML):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>
<title>SHODKA TEST</title>
</head>
<body>
<h4>Test A</h4>
<div style="text-align: left; position: absolute; left: 0px; top: 100px">
<table style="margin-left: auto; margin-right: auto">
<tr><th>c</th></tr>
<tr><td>c</td></tr>
<tr><td>xxxxxxx</td></tr>
</table>
</div>

</body>
</html>

Regards Lucas.
Let me know if there is a workaround.

-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list