-
Notifications
You must be signed in to change notification settings - Fork 0
/
22pseudoselector.html
57 lines (55 loc) · 1.79 KB
/
22pseudoselector.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
<!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>Pseudo selectors and more designing</title>
<style>
.container{
border: 3px solid rgb(255, 0, 0);
background-color: blanchedalmond;
padding: 34px;
margin: 34px auto;
width: 555px;
}
a{
text-decoration: none;
color: black;
}
a:hover{
color: blue;
background-color: rgb(255, 13, 13);
/* cursor tya jase atle j color aave ana mate */
}
a:visited{
background-color: yellow; /* 1 var visit thay jay atle aa color jova madse */
}
a:active{
background-color: aqua; /* click karvathi aa color thase */
}
.btn{
font-family: Verdana, Geneva, Tahoma, sans-serif;
background-color: lightcoral;
padding: 5px;
border: none;
cursor: pointer;
font-size: 13px;
border-radius: 5px;
}
.btn:hover{
color: black;
background-color: rgb(220, 182, 255);
border: 3px solid black;
}
</style>
</head>
<body>
<div class="container" id="cont1">
<h3>This is class conatainer</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid minus reprehenderit ducimus omnis quaerat illo dolorum natus quam perferendis quia debitis quod inventore deserunt ad in laudantium, modi totam doloribus?</p>
<a href="https://google.com" class="btn">Read more</a>
<button class="btn">Contact us</button>
</div>
</body>
</html>