Repository navigation
Expand file tree
/
Copy pathfloat.html
More file actions
85 lines (80 loc) · 2.07 KB
/
Copy pathfloat.html
File metadata and controls
85 lines (80 loc) · 2.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Layout CSS | Part #01 - Float şi clear</title>
<style>
/* Globale */
*, ::after, ::before {
box-sizing: border-box;
}
/* Utile */
.p-10 {
padding: 10px;
}
.mb-10 {
margin-bottom: 10px;
}
.bg-grey {
background-color: gainsboro;
}
.text-center {
text-align: center;
}
.container {
max-width: 1200px;
padding-right: 10px;
padding-left: 10px;
margin-left: auto;
margin-right: auto;
}
.row {
}
.fl {
float: left;
}
.clear {
clear: both;
}
.clearfix::after {
content: '';
display: table;
clear: both;
}
/* Parti de layout */
.antet, .nav, .footer {
height: 50px;
}
.content, .sidebar {
height: 280px;
}
.content {
width: 50%;
margin-left: 10px;
margin-right: 10px;
}
.sidebar {
width: calc(25% - 10px);
}
</style>
</head>
<body>
<div class="container">
<header class="antet p-10 mb-10 bg-grey text-center">Antet</header>
</div>
<div class="container">
<nav class="nav p-10 mb-10 bg-grey text-center">Navigatie</nav>
</div>
<div class="container">
<div class="row clearfix">
<aside class="sidebar fl p-10 mb-10 bg-grey text-center">Bara laterala stanga</aside>
<main class="content fl p-10 mb-10 bg-grey text-center">Continut</main>
<aside class="sidebar fl p-10 mb-10 bg-grey text-center">Bara laterala dreapta</aside>
</div>
</div>
<div class="container">
<footer class="footer p-10 bg-grey text-center">Subsol</footer>
</div>
</body>
</html>