-
Notifications
You must be signed in to change notification settings - Fork 20
/
flexbox.html
81 lines (79 loc) · 2.18 KB
/
flexbox.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
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.container{
display:flex;
flex-direction: column;
border-top:4px solid black;
border-left:4px solid black;
border-right:4px solid black;
}
.item1{
color:white;
background-color: rgb(42, 117, 210);
padding:10px 0px 20px 10px;
margin:5px;
}
.item2{
color:white;
background-color: rgb(194, 50, 50);
padding:10px 0px 60px 10px;
margin:5px;
}
.item3{
color:white;
background-color: rgb(56, 190, 56);
padding:10px 0px 300px 10px;
margin:5px;
width:65%;
}
.item4{
color:white;
background-color: rgb(168, 49, 168);
padding:10px 0px 300px 10px;
margin:5px;
width:35%;
}
.item5{
color:white;
background-color: rgb(113, 103, 103);
padding:10px 0px 20px 10px;
margin:5px;
}
.contain{
display:flex;
flex-direction: row;
border-left:4px solid black;
border-right:4px solid black;
}
.con{
display:flex;
flex-direction: column;
border-bottom:4px solid black;
border-left:4px solid black;
border-right:4px solid black;
}
</style>
</head>
<body>
<div class="container">
<div class="item1">Header</div>
<div class="item2">Hero</div>
<!-- <div class="item3">Content</div> -->
<!-- <div class="item4">Sidebar</div> -->
<!-- <div class="item5">Footer</div> -->
</div>
<div class="contain">
<div class="item3">Content</div>
<div class="item4">Sidebar</div>
</div>
<div class="con">
<div class="item5">Footer</div>
</div>
</body>
</html>