-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdandylion-with-nav.css
More file actions
48 lines (45 loc) · 924 Bytes
/
Copy pathdandylion-with-nav.css
File metadata and controls
48 lines (45 loc) · 924 Bytes
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
/* CSS Document */
html, body { margin: 0; padding: 0; border: 0; }
body { background-color: #dfdfdf; }
#main {
width: 100%;
background-color: #fff;
margin: 0 auto;
}
header, article, aside, footer, nav {
width: 100%;
}
nav ul, nav ul li {
display: block;
list-style-type: none;
padding: 0;
margin: 0;
}
nav ul li {
background-color: black;
color: white;
padding: 2% 1%;
border: 1px solid #DFDFDF;
}
@media screen and (min-width: 481px) {
nav ul {
background-color: #000;
padding: 2% 1%;
}
nav ul li {
width: 20%;
display: inline;
border: none;
border-right: 1px solid #dfdfdf;
padding-right: 2%;
}
article, aside { width: 48%; float: left; }
#col2, footer { width: 48%; float: right; }
aside img { width: 100%; height: auto; }
}
@media screen and (min-width:481px) and (max-width: 800px){
#main { width: 90%; }
}
@media screen and (min-width: 801px){
#main { width: 70%; }
}