-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdc.css
149 lines (143 loc) · 2.84 KB
/
dc.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
*{
margin: 0;
box-sizing: border-box;
text-decoration: none;
}
#box1 {
background-image: url("src/dc.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
height: 25vh;
width: 100%;
}
header{
text-align: right;
color: navy;
font-size: 3vw;
}
h1{
padding: 2%;
background-color: rgba(255,255,255,0.5);
font-family: "Georgia", serif;
}
header p{
padding-right: 2%;
background-color: rgba(255,255,255,0.5);
padding-bottom: 5%;
}
h2, nav{
font-family: "Verdana", sans-serif;
}
h2{
font-size: 3vw;
margin-bottom: 2%;
}
p{
font-family: "Helvetica Neue", sans-serif;
font-size: 1.2vw;
}
nav{
background-color: #D3D3D3;
width: 60%;
box-sizing: border-box; /* Makes sure padding is included in the width */
}
nav li{
list-style: none;
font-size: 1vw; /* Reduced from 1.2vw to give more space */
padding: 10% 1%; /* Reduced horizontal padding */
color: navy;
display: block; /* Ensure each nav item is on its own line */
}
nav ul {
padding-left: 0; /* Removes default padding */
margin: 0; /* Removes default margin */
text-align: left;
display: flex; /* Makes the items flex items, adjusting better to space */
flex-wrap: wrap; /* Allows items to wrap if needed */
}
main{
padding: 2%;
}
main p{
text-align: left;
}
#ggb, #sc, #holl, #background, #whitehouse, #nationalmall, #lincolnmemorial {
padding: 3% 0 3% 0;
border-bottom: navy 5px dotted;
}
#sc{
border: none;
}
#page-wrapper{
display: flex;
flex-direction: column;
text-align: center;
background-color: navy;
width: 70%;
margin: auto;
}
#container{
background-color: #FFEFD5;
display: flex;
flex-direction: row;
}
#box2{
background-image: url("src/dc.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
height: 14vh;
width: 100%;
}
footer{
background-color: rgba(255,255,255,0.5);
padding-bottom: 6%;
color: navy;
padding-top: 3%;
}
img{
margin-bottom: 2%;
width:90%;
}
@media screen and (max-width:750px){
#container{
width: 100%;
display: flex;
flex-direction: column;
}
nav{
display: flex;
flex-direction: column;
width: 100%;
}
nav li{
width: 100%;
text-align: center;
display: inline;
border-left: none;
}
nav ul{
margin: auto;
width: 100%;
font-size: 4vw;
text-align: center;
}
header {
text-align: center;
}
main {
width: 100%;
display: flex;
flex-direction: column;
}
img{
max-width: 40%;
}
#page-wrapper {
width: 100%;
display: flex;
flex-direction: column;
margin: 0;
}
}