forked from kokonior/CSS-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss_selector.html
90 lines (86 loc) · 2.55 KB
/
css_selector.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
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> CSS Selector</title>
</head>
<body>
<style>
body{
background-color: #f1faee;
}
button{
font-size: 30px;
background-color: #a8dadc;
}
h1,h2{
color: #1d3557;
}
#signup{
background-color: #1d3557;
color: #f1faee;
}
span{
color: #457b9d;
}
.tag{
background-color: #e63946;
color: #f1faee;
}
.post a{
color: #457b9d;
}
footer a{
color: #e63946;
}
h2 + button{
font-size: 20px;
}
footer > a{
color: purple;
}
input[type="password"]{
color: greenyellow;
}
</style>
<nav>
<label for="username">Your Name</label>
<input type="text" name="" id="username" placeholder="username">
<input type="password" name="" id="" placeholder="password">
<button>Log in</button>
<button id="signun">Sign up</button>
</nav>
<main>
<section class="post">
<h1>Popular Post</h1>
<span><p>posted by <a href="#">1First</a></p></span>
<h2>Lol look at this hilarious meme</h2>
<button>Vote</button>
<hr>
</section>
<section class="post">
<h1>Popular Post</h1>
<span><p>posted by <a href="#">1First</a></p></span>
<h2>Get well soon sir</h2>
<button>Vote</button>
<hr>
</section>
<section class="post">
<h1>Popular Post</h1>
<span><p>posted by <a href="#">1First</a></p></span>
<h2>You look beatiful today</h2>
<button>Vote</button>
<hr>
</section>
</main>
<footer>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</footer>
</body>
</html>