-
Notifications
You must be signed in to change notification settings - Fork 0
/
prac.css
60 lines (54 loc) · 789 Bytes
/
prac.css
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
*{
padding: 0;
margin: 0;
}
body{
width: 100vw;
}
nav{
width: 100%;
display: flex;
justify-content: space-between;
background-color: burlywood;
position: relative;
}
h2{
margin-left: 30px;
}
ul{
display: flex;
}
li{
list-style: none;
}
a{
display: block;
text-decoration: none;
padding: 8px 13px;
}
a:hover{
cursor: pointer;
}
.dropdown{
position: absolute;
right: 0;
display: none;
}
@media only screen and (max-width: 600px) {
nav{
flex-direction: column;
}
ul{
flex-direction: column;
display: none;
}
.dropdown{
display: block;
}
}
@media only screen and (min-width: 600px) {
ul{
flex-direction: row;
display: flex;
}
}