-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path11.padding.html
More file actions
48 lines (44 loc) · 1.16 KB
/
11.padding.html
File metadata and controls
48 lines (44 loc) · 1.16 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
<!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>CSS - Padding</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
div.box-1 {
width: 500px;
height: 200px;
border: 5px solid black;
/* padding-left: 20px;
padding-right: 20px;
padding-bottom: 20;
padding-top: 20px;
top right bottom left
padding: 20px 20px 20px 20px;
padding: 20px;
padding: 20px 50px; */
padding: 40px;
}
div.box-2 {
width: 500px;
height: 200px;
border: 5px solid black;
padding: 30px;
}
</style>
</head>
<body>
<div class="box-1">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ea, unde.
</div>
<div class="box-2">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ea, unde.
</div>
</body>
</html>