-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path20BoxModel.html
More file actions
48 lines (41 loc) · 1.49 KB
/
20BoxModel.html
File metadata and controls
48 lines (41 loc) · 1.49 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>Box model</title>
<style>
.container{
background-color: rgb(255 0 0/ 23%);
border: 3px solid rgb(201 50 26);
margin: 20px; /* margin na use thi 2 block vache space aavse */
width: 250px;
border-radius: 20px;
font-size: 20px;
font-family:'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
font-weight:bolder;
padding: 30px;
background-position: top top; /* padding na use thi block no content center ma aavse */
/* Different way to use padding. more attractive banava mate.
padding-left: 23px;
padding-top: 23px;
padding-bottom: 23px; */
/* padding: 23px 45px 9px 8px; padding top right bottom left */
/* padding: 34px 500px; padding: y(top/bottom) x(left/right); */
/* above all syntax use for margin also */
}
</style>
</head>
<body>
<div class="container">
<p id="first">Hello my name is Chintan Patel..!!</p>
</div>
<div class="container">
<p id="second">I am from Surat,Gujarat.</p>
</div>
<div class="container">
<p id="third">I am studying in A D patel institute of technology.</p>
</div>
</body>
</html>