-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss_box_2.html
More file actions
147 lines (146 loc) · 5.55 KB
/
css_box_2.html
File metadata and controls
147 lines (146 loc) · 5.55 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible", content="IE-edge">
<title>Box Model | Vijay CSS</title>
<link rel="stylesheet", href="css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"> <!--Import more fonts from font-awesome-->
<style>
body
{
background: rgb(229, 240, 208);
margin: 20px;
font-family: Arial;
}
header
{
border: 5px groove black;
padding: 1.5rem;
margin: 1.25rem;
width: 80.4%;
}
h1, h2
{
font-size: 40px;
}
p
{
font-size: 1.5rem;
}
.overview
{
border: 5px dashed rgb(0, 102, 255);
outline: 5px solid;
padding: 1.5rem;
margin: 1.5rem;
width: 80%;
}
.container
{
border-left: 5px dashed black;
border-right: 5px dotted black;
border-top: 5px solid black;
border-bottom: 5px groove black;
padding: 1.5rem;
margin: 1.2rem;
width: 80.4%;
}
.outline-container
{
border: 5px solid gold;
outline: 5px dotted green;
padding: 1.5rem;
margin: 1.4rem;
width: 80.1%;
}
.outline-off-container
{
border: 5px solid rgb(212, 0, 255);
outline: 5px dotted red;
outline-offset: 1rem;
padding: 1.5rem;
width: 78.7%;
margin-top: 3rem;
margin-bottom: 2.3rem;
margin-left: 2.3rem;
margin-right: 2.3rem;
}
.circle-container
{
border: 5px dashed black;
outline: 5px solid grey;
padding: 1.5rem;
margin: 1.2rem;
width: 80.4%;
}
.circle
{
border: 5px solid black;
outline: 5px solid red;
outline-offset: 1rem;
border-radius: 100px;
background-color: green;
margin: 3rem auto;
width: 200px;
height: 200px;
}
</style>
</head>
<body>
<header>
<h1>CSS Box Model</h1>
</header>
<main>
<section class="overview">
<h2>Overview</h2><br>
<p>
This page is about CSS box models. The box model is used for designs and layout of a webpage.
This page is about CSS box models. The box model is used for designs and layout of a webpage.
This page is about CSS box models. The box model is used for designs and layout of a webpage.
This page is about CSS box models. The box model is used for designs and layout of a webpage.
</p>
</section>
<div class="container">
<h2>Container</h2><br>
<p>
This is a random container with 4 different border styles on each side.
This is a random container with 4 different border styles on each side.
This is a random container with 4 different border styles on each side.
This is a random container with 4 different border styles on each side.
</p>
</div>
<div class="outline-container">
<h2>Outline Container</h2><br>
<p>
This is a container containing the main 'solid' border and an outer/outline 'dotted' border.
This is a container containing the main 'solid' border and an outer/outline 'dotted' border.
This is a container containing the main 'solid' border and an outer/outline 'dotted' border.
This is a container containing the main 'solid' border and an outer/outline 'dotted' border.
</p>
</div>
<div class="outline-off-container">
<h2>Outline Offset Container</h2><br>
<p>
This is a container containing a 'dotted' border and an offset of 5 pixels.
This is a container containing a 'dotted' border and an offset of 5 pixels.
This is a container containing a 'dotted' border and an offset of 5 pixels.
This is a container containing a 'dotted' border and an offset of 5 pixels.
</p>
</div>
<div class="circle-container">
<h2>Circle</h2><br>
<p>
Below is a circle created using a div and CSS.
Below is a circle created using a div and CSS.
Below is a circle created using a div and CSS.
Below is a circle created using a div and CSS.
</p>
<div class="circle"></div>
</div>
</main>
<footer>
</footer>
</body>
</html>