-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstylesheet.css
More file actions
35 lines (31 loc) · 829 Bytes
/
stylesheet.css
File metadata and controls
35 lines (31 loc) · 829 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
/* Use a CSS selector to apply style(s) to at least one HTML tag */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
}
/* Style the id */
#main-header {
background-color: #2c3e50;
color: white;
text-align: center;
/* Change at least two box model properties (padding, margin, etc.) */
padding: 20px;
margin-bottom: 20px;
}
/* Style the class applied to multiple elements */
.content-section {
background-color: white;
width: 80%;
margin: 0 auto 20px auto; /* Box model property */
padding: 20px; /* Box model property */
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Use a CSS selector to change the color of <a> when you hover */
a {
color: #3498db;
text-decoration: none;
}
a:hover {
color: #e74c3c;
}