-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss_box_1.html
More file actions
139 lines (136 loc) · 5.33 KB
/
css_box_1.html
File metadata and controls
139 lines (136 loc) · 5.33 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
<!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>CSS 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
{
margin: 20px;
background: rgb(253, 219, 155);
font-family: Arial;
}
header
{
border: 5px groove black;
width: 80%;
font-size: 3rem;
padding: 1.5rem;
margin: 1.5rem;
}
h1, h2
{
font-size: 40px;
}
.container
{
border: 5px dashed black;
width: 80%;
font-size: 1.5rem;
padding: 1.5rem;
margin: 1.5rem;
outline: 5px solid
}
.container2
{
width: 80%;
font-size: 1.5rem;
padding: 1.5rem;
margin: 1.5rem;
border-left: 5px dashed black;
border-right: 5px dotted black;
border-top: 5px solid black;
border-bottom: 5px groove black;
}
.container3
{
width: 80%;
font-size: 1.5rem;
padding: 1.5rem;
margin: 1.5rem;
border: 5px solid rgb(255, 115, 0);
outline: 5px dotted rgb(0, 206, 86);
}
.container4
{
width: 80%;
font-size: 1.5rem;
padding: 1.5rem;
margin: 1.5rem;
border: 5px solid rgb(255, 0, 179);
outline: 5px dotted rgb(255, 0, 0);
outline-offset: 10px;
}
.circle /* Creates a circle */
{
margin: 3rem auto;
background-color: green;
width: 100px;
height: 100px;
border: 5px solid black;
outline: 5px solid red;
outline-offset: 0.25rem;
border-radius: 100px;
}
</style>
</head>
<body>
<header>
<h1>CSS Box Model</h1>
</header>
<main><br>
<section class="container">
<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><br>
<section class="container2">
<h2>Container</h2>
<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>
</section><br>
<section class="container3">
<h2>Outline Container</h2>
<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>
</section><br>
<section class="container4">
<h2>Outline Offset Container</h2>
<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>
</section><br>
<section class="container">
<h2>Circle</h2>
<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>
</section>
</main>
<footer>
</footer>
</body>
</html>