-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbox model.html
More file actions
75 lines (59 loc) · 2.17 KB
/
box model.html
File metadata and controls
75 lines (59 loc) · 2.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Box Model</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #e6cbf8;
}
.container {
background-color: rgb(231, 230, 241);
border: 3px solid rgb(64, 6, 119);
/* We can set margin/padding for top, bottom, left and right like this */
/* padding-top: 79px;
padding-bottom: 79px;
padding-left: 34px;
padding-right: 79px;*/
/* margin-top: 3px;
margin-bottom: 5px;
margin-left: 34px;
margin-right:5px ; */
/* margin = top right bottom left; */
/* padding = top right bottom left; */
/* padding: 23px 56px 6px 78px; */
/* margin: 23px 56px 6px 78px; */
/* padding: y(top/bottom) x(left/right); */
/* margin: y(top/bottom) x(left/right); */
padding: 34px 19px;
margin: 14px 19px;
border-radius: 23px;
width: 533px;
}
</style>
</head>
<body>
<div class="container">
<h3>This is my heading</h3>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Incidunt harum quis, quibusdam, minima molestiae
tempore vel magni, repellendus doloribus debitis rerum tenetur eveniet.</p>
</div>
<div class="container">
<h3>This is my heading</h3>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Incidunt harum quis, quibusdam, minima molestiae
tempore vel magni, repellendus doloribus debitis rerum tenetur eveniet.</p>
</div>
<div class="container">
<h3>This is my heading</h3>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Incidunt harum quis, quibusdam, minima molestiae
tempore vel magni, repellendus doloribus debitis rerum tenetur eveniet.</p>
</div>
</body>
</html>