Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html lang="en-US">
4 <head>
5 <title>Absolute positioning margin:auto regression</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7 <meta http-equiv="Content-Style-Type" content="text/css">
8 <style type="text/css">
10 body > div {
11 position: relative;
12 border: medium solid;
13 width: 600px;
14 padding-bottom: 1.5em;
15 }
17 body > div > div {
18 background: blue;
19 width: 400px;
20 height: 1em;
21 position: absolute;
22 left: 0;
23 right: 0;
24 margin-left: auto;
25 margin-right: 100px;
26 }
28 </style>
29 </head>
30 <body>
32 <div>
33 This div should be centered within its container:
34 <div></div>
35 </div>
37 </body>
38 </html>