-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlayout2.html
More file actions
108 lines (108 loc) · 2.14 KB
/
layout2.html
File metadata and controls
108 lines (108 loc) · 2.14 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!doctype html>
<html lang="en">
<head>
<style type="text/css">
*{
margin:0px;
padding:0px;
/* to control width of page */
box-sizing:border-box;
}
/* #div1{
width:100%;
height:50px;
background-color:lightgray;
padding-left:2%;
padding-right:2%;
border-left:20px solid black;
border-right:20px solid black;
} */
#logo-div{
width: 100%;
min-height: 50px;
background-color: lightgray;
line-height: 50px;
padding-left: 2%;
margin-bottom: 10px;
}
#nav-div{
width: 100%;
min-height: 30px;
background-color: lightgray;
/* horizontally alignments */
text-align: center;
/* vertically alignments */
line-height: 30px;
margin-bottom: 10px;
}
#header-banner-div{
width: 100%;
min-height: 100px;
background-color: lightgray;
text-align: center;
line-height: 100px;
margin-bottom: 10px;
}
#main-div{
width: 100%;
/* min-height: 400px; */
/* for height let uses clearfix */
background-color: white;
margin-bottom: 10px;
}
#sidebar-div{
width: 20%;
min-height: 400px;
background-color: lightgray;
float: left;
text-align: center;
line-height: 400px;
}
#bodyarea-div{
width: 75%;
min-height:400px ;
background-color:lightgray;
float: right;
text-align: center;
line-height: 400px;
}
.clearfix::after{
content: '';
display: block;
/* clear is used for parent while float is used for child */
clear: both;
}
#footer-div{
width: 100%;
min-height: 100px;
background-color: lightgray;
text-align: center;
line-height: 100px;
}
#wrapper-div{
width: 80%;
margin: auto;
}
</style>
<meta charset="utf-8">
<title>layout1</title>
</head>
<body>
<div id="wrapper-div">
<div id="logo-div">
logo
</div>
<div id="nav-div">
Navigation
</div>
<div id="header-banner-div">
Header/Banner
</div>
<div id="main-div" class="clearfix">
<div id="sidebar-div">Sidebar</div>
<div id="bodyarea-div">Body Area</div>
</div>
<div id="footer-div">Footer</div>
</div>
</body>
</html>