blob: fc324137801885b0e4b9910038b0d73976a23cad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<!DOCTYPE html>
<html><head><title>flexbox | cleared item</title>
<link href="http://opera.com" rel="author" title="Opera Software">
<style>
#float {
background: #3366cc;
padding: 1em;
float: left;
}
#flex {
background: #ffcc00;
overflow: hidden;
}
div div {
margin: 2em;
height: 4em;
clear: both;
}
</style>
</head><body><div id="float">damer</div>
<div id="flex">
<div>Yellow box should be to the right of the blue box, and
never below</div>
</div>
</body></html>
|