summaryrefslogtreecommitdiff
path: root/Base/res/html/misc/margin-collapse-2.html
blob: f1d92ded30a90ff9397555383d03322659fc4541 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<style>
#foo {
    border: 1px solid red;
    margin-bottom: 25px;
    width: 100px;
    height: 100px;
}
#bar {
    border: 1px solid green;
    margin-bottom: 25px;
    width: 100px;
    height: 100px;
}
#baz {
    border: 1px solid blue;
    width: 100px;
    margin-top: -20px;
    height: 100px;
}
</style>
<div id=foo>foo</div>
<div id=bar>bar</div>
<div id=baz>baz</div>