Skip to content

Commit 119c572

Browse files
authored
Refactor CSS styles for one-page website
Consolidated styles for header and footer, and removed redundant styles.
1 parent 0e2416e commit 119c572

1 file changed

Lines changed: 2 additions & 23 deletions

File tree

one-page-website/style.css

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,15 @@
1-
/* Basic styles for the one-page website */
21
body {
32
font-family: Arial, sans-serif;
43
margin: 0;
5-
padding: 0;
6-
background-color: #f4f4f4;
74
}
85

9-
header {
6+
header, footer {
107
background-color: #333;
118
color: white;
129
text-align: center;
1310
padding: 20px;
1411
}
1512

16-
header nav a {
17-
color: white;
18-
text-decoration: none;
19-
margin: 0 10px;
20-
}
21-
2213
section {
23-
padding: 40px 20px;
24-
max-width: 800px;
25-
margin: auto;
26-
background-color: white;
27-
margin-bottom: 20px;
28-
border-radius: 5px;
14+
padding: 20px;
2915
}
30-
31-
footer {
32-
background-color: #333;
33-
color: white;
34-
text-align: center;
35-
padding: 15px;
36-
}

0 commit comments

Comments
 (0)