-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.html
90 lines (67 loc) · 1.79 KB
/
custom.html
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
<!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>Custom CSS Property</title>
<style>
:root {
--my-made: orangered;
--second-mymade: #333;
--make-marpad: 0;
--side-width: 200px;
}
body {
margin: var(--make-marpad);
padding: var(--make-marpad);
}
header h1 .proper-color {
color: var(--my-made);
}
main h2 {
background-color: var(--my-made);
color: var(--second-mymade);
}
.side-nav,
.blogs {
float: left;
height: 500px;
}
aside {
background-color: springgreen;
width: var(--side-width);
}
.blogs {
background-color: lightskyblue;
width: calc(100% - 3*var(--side-width));
}
footer {
clear: both;
}
</style>
</head>
<body>
<header>
<h1>Exploring Custom <span class="proper-color">CSS Properties here!</span></h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Excepturi, sit.</p>
<main>
<h2>My awesome content</h2>
<b>Lorem ipsum dolor sit amet consectetur adipisicing.</b>
</main>
<br><br><br>
<section>
<aside class="side-nav">
This is a side navigation!
</aside>
<div class="blogs">
<h4>Blogs</h4>
</div>
</section>
<br><br><br>
<footer>
<p>© copyright 2022</p>
</footer>
</header>
</body>
</html>