You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -63,14 +63,17 @@ body {
63
63
64
64
No, it's not dark magic, you really can center elements vertically. Look how simple this is.
65
65
66
+
**Note:** Watch for some [buggy behavior](https://github.com/philipwalton/flexbugs#3-min-height-on-a-flex-container-wont-apply-to-its-flex-items) with flexbox in IE11.
67
+
66
68
67
69
### Select Items Using Negative `nth-child`
68
70
69
71
```css
70
72
li {
71
73
display: none;
72
74
}
73
-
/* select items 1 through 3 and show them */
75
+
76
+
/* select items 1 through 3 and display them */
74
77
li:nth-child(-n+3) {
75
78
display: block;
76
79
}
@@ -87,7 +90,7 @@ Use negative `nth-child` in CSS to select items 1 through n. Well that was prett
87
90
}
88
91
```
89
92
90
-
There's no reason not to use SVG for icons. SVG is supported in all browsers back to IE9. So start ditching your .png, .jpg, or .gif-jif-whatev files.
93
+
There's no reason not to use SVG for icons. SVG is supported in all browsers back to IE9. So ditch your .png, .jpg, or .gif-jif-whatev files.
91
94
92
95
93
96
### Inherit `box-sizing`
@@ -96,6 +99,7 @@ There's no reason not to use SVG for icons. SVG is supported in all browsers bac
96
99
html {
97
100
box-sizing: border-box;
98
101
}
102
+
99
103
*, *:before, *:after {
100
104
box-sizing: inherit;
101
105
}
@@ -112,6 +116,7 @@ Letting `box-sizing` be inheritted from `html` makes it easier to change `box-si
0 commit comments