Skip to content

Commit fa0e4e2

Browse files
authored
Merge pull request #141 from OnkarRuikar/patch-1
fix: use `gap` instead of margin for flex navigation
2 parents becd34a + 09e7107 commit fa0e4e2

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

flexbox/use-cases/split-navigation.html

+6-13
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,12 @@
7979
</style>
8080
<style class="editable">
8181
nav ul {
82-
display: flex;
83-
margin: 0 -10px;
84-
}
85-
nav li {
86-
margin: 0 10px;
82+
display: flex;
83+
gap: 20px;
84+
}
85+
.push-right {
86+
margin-left: auto;
8787
}
88-
.push-right {
89-
margin-left: auto;
90-
}
9188
</style>
9289
</head>
9390

@@ -107,11 +104,7 @@
107104
<textarea class="playable-css">
108105
nav ul {
109106
display: flex;
110-
margin: 0 -10px;
111-
}
112-
113-
nav li {
114-
margin: 0 10px;
107+
gap: 20px;
115108
}
116109

117110
.push-right {

0 commit comments

Comments
 (0)