Skip to content

Commit 25ab891

Browse files
committed
section-3: Style nav bar.
1 parent 9b77bdc commit 25ab891

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

starter/03-CSS-Fundamentals/style.css

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,21 @@ a:active {
103103
font-style: italic;
104104
}
105105

106-
/* nav a:link {
107-
font-size: 18px;
108-
} */
106+
nav a:link {
107+
/* font-size: 18px;
108+
background-color: orangered;
109+
margin: 20px;
110+
padding: 20px;
111+
display: block; */
112+
113+
margin-right: 30px;
114+
margin-top: 10px;
115+
display: inline-block;
116+
}
117+
118+
nav a:link:last-child {
119+
margin-right: 0;
120+
}
109121

110122
nav {
111123
font-size: 18px;
@@ -148,7 +160,7 @@ nav {
148160

149161
.main-header {
150162
background-color: #f7f7f7;
151-
height: 80px;
163+
/* height: 80px; */
152164
padding: 20px 40px;
153165
margin-bottom: 60px;
154166
}

0 commit comments

Comments
 (0)