-
Notifications
You must be signed in to change notification settings - Fork 1
/
table_like_divs.html
66 lines (50 loc) · 974 Bytes
/
table_like_divs.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
<!DOCTYPE html>
<html>
<head>
<title>3 horizontal divs</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--{--><style type='text/css'>
body {
margin: 0;
height:10000px;
background-color: #112;
}
#main{
position :fixed;
display :table;
width :100%;
top : 10%;
margin-bottom:100px;
height : 50%;
}
#row{
display:table-row;
}
#row div{
display:table-cell;
width: 33%;
}
#left {
background:#f70;
}
#middle {
background:#31a;
width:33%;
margin:auto;
}
#right {
width: 33%;
background:#feb;
}
</style><!--}-->
</head>
<body>
<div id='main'>
<div id='row'>
<div id='left' ></div>
<div id='middle'></div>
<div id='right' ></div>
</div>
</div>
</body>
</html>