-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5_marginCollapse.html
More file actions
77 lines (68 loc) · 2.07 KB
/
5_marginCollapse.html
File metadata and controls
77 lines (68 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 00;
padding: 0;
}
.box1{
background-color: brown;
margin: 30px;
height: 2220px;
width: 220px;
border: 2px solid black;
}
.box2{
box-sizing: border-box;
width: 100%;
border: solid #5B6DCD
10px;
width: 100%;
padding: 5px;
}
.box3{
background-color: black ;
color: white;
margin: 55px;
padding: 66px;
}
.boxsize{
/* background-color: black; */
margin: 33px;
padding: 33px;
}
</style>
</head>
<body>
<div class="box1">
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Tempora nemo, hic earum deserunt nisi, vitae a quo aliquam consectetur ipsum nobis cumque reprehenderit numquam architecto, adipisci dolores quos esse impedit?
</div>
<div class="box2">
</div>
<div class="box3">
<h1>this is lorem</h1>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eum laborum nesciunt consequatur aperiam velit dolorum aut, quam in nostrum possimus inventore? Suscipit harum accusamus vel veritatis adipisci! Obcaecati, repellendus corporis?
</div>
<!-- box sizing -->
<div class="boxsize">
determine whta out of padding and border is inclided in elements width and height.
can be content box or border box
</div>
<table>
<tr>
<th>name </th>
<th> class</th>
<th> roll</th>
</tr>
<tr>
<td>harry </td>
<td>11 </td>
<td>31</td>
</tr>
</table>
</body>
</html>