-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss_box_3.html
More file actions
152 lines (151 loc) · 5.84 KB
/
css_box_3.html
File metadata and controls
152 lines (151 loc) · 5.84 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
148
149
150
151
152
<!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 (Dark Mode) | 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-color: black;
font-family: Arial;
}
h1
{
color: gold;
font-size: 40px;
}
h2
{
color: gold;
font-size: 30px;
padding-bottom: 1.5rem;
}
p
{
font-size: 20px;
color: white;
}
.h-container
{
border: rgb(119, 255, 119) 5px solid;
margin: 4rem 2rem;
padding: 1.2rem;
width: 80%;
}
.overview
{
border: rgb(119, 255, 119) 5px solid;
outline: 5px outset rgb(255, 128, 213);
margin: 4rem 2.3rem;
padding: 1.2rem;
width: 79.7%;
}
.container
{
border-top: 5px solid rgb(170, 170, 170);
border-bottom: 7px double rgb(170, 170, 170);
border-left: 5px dashed rgb(170, 170, 170);
border-right: 5px dotted rgb(170, 170, 170);
margin: 4rem 2.0rem;
padding: 1.2rem;
width: 80.2%;
}
.outline-container
{
border: orange 5px solid;
outline: 5px dotted rgb(125, 116, 245);
margin: 4rem 2.3rem;
padding: 1.2rem;
width: 80%;
}
.offset-container
{
border: 5px solid rgb(255, 114, 255);
outline: 5px dashed rgb(240, 87, 87);
outline-offset: 1rem;
margin: 4rem 3.3rem;
padding: 1.2rem;
width: 78.5%;
}
.circle-container
{
border: 5px solid rgb(155, 153, 153);
outline: 5px dashed white;
outline-offset: -1rem;
margin: 4rem 2rem;
padding: 1.4rem;
width: 80.5%;
}
.circle
{
border: 5px solid rgb(128, 226, 36);
border-radius: 100px;
background-color: rgb(125, 125, 245);
outline: 5px solid rgb(255, 92, 92);
width: 200px;
height: 200px;
margin: 4rem 1.9rem;
padding: 1.4rem;
}
</style>
</head>
<body>
<header class="h-container">
<h1>CSS Box Model</h1>
</header>
<main>
<section class="overview">
<h2>Overview</h2>
<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>
<section class="container">
<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>
<section class="outline-container">
<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>
<section class="offset-container">
<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>
<section class="circle-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>