summaryrefslogtreecommitdiff
path: root/legacy/works/negative-margin-top.html
blob: a58556e74a6de9374c2c40aef0064aeb48e8c459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>top margin layout test</title>
</head>

<body>

<div style="background: red; height: 5em;"></div>
<div style="margin-top: -5em; background: yellow; height: 5em;"></div>
<div style="margin-top: 1em; background: yellow; height: 5em;"></div>
<div style="margin-top: 1em; background: yellow; height: 5em;"></div>
<div style="margin-top: 1em; background: yellow; height: 5em;"></div>
<div style="margin-top: 1em; background: yellow; height: 5em;"></div>

<p>There should be no red above</p>

</body>
</html>