-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssignment_box_model.html
More file actions
40 lines (39 loc) · 1.35 KB
/
Assignment_box_model.html
File metadata and controls
40 lines (39 loc) · 1.35 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
<!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>
</head>
<style>
*{
background-color:aliceblue;
}
#Box{
/*background-color:burlywood;*/
border: 25px solid burlywood;
margin-left: 2%;
padding: 10px;
color: brown;
width: 100%;
height: auto;
}
#content{
background-color:antiquewhite;
font-size: 22px;
font-weight: bold;
}
</style>
<body>
<h1 style="text-align: center;">BOX MODEL</h1>
<div id="Box">
<div id="content">
Box model is a container which contains multiple properties including borders, margin, padding and the content itself. It is used to create the design and layout of web pages. It can be used as a toolkit for customizing the layout of different elements. The web browser renders every element as a rectangular box according to the CSS box model.
Box-Model has multiple properties like :<br>
*border<br>*margin<br>*padding<br>*content<br>
<img style="width:100%;" src="https://gbirla.github.io/CSL3403/box_model.png">
</div>
</div>
</body>
</html>