-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtut16.html
82 lines (67 loc) · 2.82 KB
/
tut16.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
82
<!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>Box Model</title>
<!-- The box model helps us to define the padding, border, and margin around an element. -->
<!-- Content- The content of the box, where text and images appear.
Padding- It clears an area around the content. The padding is transparent.
Border- A border is one that covers the padding and content.
Margin- It clears an area outside the border. The margin is also transparent. -->
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #bca3bc;
}
.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 container</h3>
<p id="first"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Hic corporis numquam libero ullam natus
neque veniam qui molestiae magni sint! Sint, temporibus facilis ducimus
beatae ex nobis optio soluta doloribus?</p>
</div>
<div class="container">
<h3>This is my container</h3>
<p id="second"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Hic corporis numquam libero ullam natus
neque veniam qui molestiae magni sint! Sint, temporibus facilis ducimus
beatae ex nobis optio soluta doloribus?</p>
</div>
<div class="container">
<h3>This is my container</h3>
<p id="third"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Hic corporis numquam libero ullam natus
neque veniam qui molestiae magni sint! Sint, temporibus facilis ducimus
beatae ex nobis optio soluta doloribus?</p>
</div>
</body>
</html>