Skip to content

Commit 5729b95

Browse files
committed
inline-block
with display:inline-block we can set width and heigth. And also we can apply margin and padding vertically
1 parent 502dfdb commit 5729b95

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

starter/02-HTML-Fundamentals/style.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ a:active {
195195
height: 50px;
196196
}*/
197197

198-
/* .navigation a:link {
198+
.navigation a:link {
199199
margin: 20px;
200-
background-color: hotpink;
201-
color: black;
200+
background-color: #f7f7f7;
202201
padding: 10px;
203-
display: block;
204-
} */
202+
display: inline-block;
203+
margin: 20px;
204+
}

0 commit comments

Comments
 (0)