forked from meyerweb/css-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
float-inline.html
74 lines (51 loc) · 1.36 KB
/
float-inline.html
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<title>Floats and Inline Boxes</title>
<style type="text/css">
<!--
h1 {clear: both; border: 2px solid; margin: 2em 0 0.5em;
background: #DDD;}
h3, h4 {margin: 0.25em;}
h3 {background: #DED;}
h3.inline {display: inline;}
h3.inline-block {display: inline-block;}
h4 {background: #DDE;}
h4.float {width: 25%;}
h4.right {float: right;}
h4.left {float: left;}
hr {clear: both;}
-->
</style>
</head>
<body>
<h1>Normal Flow</h1>
<h3>This is an H3</h3>
<h4>This is an h4</h4>
<hr>
<h3 class="inline">This is an inline H3</h3>
<h4>This is an h4</h4>
<hr>
<h3 class="inline-block">This is an inline-block H3</h3>
<h4>This is an h4</h4>
<h1>Float Right</h1>
<h3>This is an H3</h3>
<h4 class="float right">This is a floated h4</h4>
<hr>
<h3 class="inline">This is an inline H3</h3>
<h4 class="float right">This is a floated h4</h4>
<hr>
<h3 class="inline-block">This is an inline-block H3</h3>
<h4 class="float right">This is a floated h4</h4>
<h1>Float Left</h1>
<h3>This is an H3</h3>
<h4 class="float left">This is a floated h4</h4>
<hr>
<h3 class="inline">This is an inline H3</h3>
<h4 class="float left">This is a floated h4</h4>
<hr>
<h3 class="inline-block">This is an inline-block H3</h3>
<h4 class="float left">This is a floated h4</h4>
</body>
</html>