-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtype_css.html
More file actions
67 lines (61 loc) · 2.21 KB
/
type_css.html
File metadata and controls
67 lines (61 loc) · 2.21 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
<!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>Types-of-css</title>
<style>
body {
background-color: black;
}
/* class selector */
.cenAlign{
text-align: center;
border: 2px solid yellow;
}
.bgBlue{
color: red;
background-color: rgb(60, 14, 226);
}
/* element selector */
h2 {
text-align: center;
}
/* id selector */
#mySpan1{
color: yellow;
text-align: center;
}
/* grouping selector */
span, footer{
color: rgb(241, 0, 241);
}
.whiteFont {
color: white;
}
#headingMain {
font-family: "Cooper Black";
}
.universalFont {
font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
</style>
</head>
<body>
<h2 id="headingMain" class="whiteFont">Hare Krishna</h2>
<p id="firstPara" class="cenAlign whiteFont universalFont">
These are types of css selectors
</p>
<p id="secondPara" class="cenAlign bgBlue universalFont">
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Adipisci voluptates ipsa in consequatur repellendus vero, earum quis labore nostrum impedit. Corporis nisi similique accusamus modi? Accusantium excepturi explicabo at quibusdam!
</p>
<div>
<p id="mySpan1" class="universalFont">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Eligendi architecto recusandae consectetur eveniet vero nemo quibusdam iure, facilis facere eaque? Lorem ipsum dolor sit amet consectetur adipisicing elit. A id nobis voluptatem saepe, aliquid cupiditate vel magni nihil natus libero!
</p>
<span class="universalFont">This is a span Lorem ipsum dolor sit amet.</span>
</div>
<footer class="cenAlign universalFont">This is lower footer which is always laying down in the feet of website.</footer>
</body>
</html>