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
⚠️ **Note:** If you follow the [Inherit `box-sizing`](#inherit-box-sizing) tip below you might opt to not include the `box-sizing` property in your CSS reset.
70
+
> [!NOTE]
71
+
> If you follow the [Inherit `box-sizing`](#inherit-box-sizing) tip below you might opt to not include the `box-sizing` property in your CSS reset.
71
72
72
73
<sup>[back to table of contents](#table-of-contents)</sup>
73
74
@@ -118,7 +119,8 @@ button {
118
119
}
119
120
```
120
121
121
-
⚠️ **Note:** the `all` and `unset` keywords aren't supported in IE11.
122
+
> [!NOTE]
123
+
> The `all` and `unset` keywords aren't supported in IE11.
122
124
123
125
<sup>[back to table of contents](#table-of-contents)</sup>
124
126
@@ -253,14 +255,15 @@ Want to center something else? Vertically, horizontally...anything, anytime, any
⚠️ **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.
258
+
> [!NOTE]
259
+
> 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.
257
260
258
261
<sup>[back to table of contents](#table-of-contents)</sup>
259
262
260
263
261
264
### Use `aspect-ratio` Instead of Height/Width
262
265
263
-
The `aspect-radio` property allows you to easily size elements and maintain consistent width-to-height ratio. This is incredibly useful in responsive web design to prevent layout shift. Use `object-fit` with it to prevent disrupting the layout if the height/width values of images changes.
266
+
The `aspect-ratio` property allows you to easily size elements and maintain consistent width-to-height ratio. This is incredibly useful in responsive web design to prevent layout shift. Use `object-fit` with it to prevent disrupting the layout if the height/width values of images changes.
264
267
265
268
```css
266
269
img {
@@ -273,7 +276,8 @@ Learn more about the `aspect-ratio` property in this [web.dev post](https://web.
⚠️ **Note:**`aspect-ratio` and `object-fit` aren't supported in IE11.
279
+
> [!NOTE]
280
+
> `aspect-ratio` and `object-fit` aren't supported in IE11.
277
281
278
282
<sup>[back to table of contents](#table-of-contents)</sup>
279
283
@@ -290,7 +294,8 @@ ul > li:not(:last-child)::after {
290
294
291
295
Use the `:not()` pseudo-class and no comma will be added to the last item.
292
296
293
-
⚠️ **Note:** This tip may not be ideal for accessibility, specifically screen readers. And copy/paste from the browser doesn't work with CSS-generated content. Proceed with caution.
297
+
> [!NOTE]
298
+
> This tip may not be ideal for accessibility, specifically screen readers. And copy/paste from the browser doesn't work with CSS-generated content. Proceed with caution.
294
299
295
300
<sup>[back to table of contents](#table-of-contents)</sup>
296
301
@@ -336,7 +341,8 @@ There's no reason not to use SVG for icons:
336
341
337
342
SVG scales well for all resolution types and is supported in all browsers [back to IE9](http://caniuse.com/#search=svg). Ditch your .png, .jpg, or .gif-jif-whatev files.
338
343
339
-
**Note:** If you have SVG icon-only buttons for sighted users and the SVG fails to load, this will help maintain accessibility:
344
+
> [!NOTE]
345
+
> If you have SVG icon-only buttons for sighted users and the SVG fails to load, this will help maintain accessibility:
⚠️ **Note:** This tip may not be ideal for accessibility, specifically screen readers. And copy/paste from the browser doesn't work with CSS-generated content. Proceed with caution.
448
+
> [!NOTE]
449
+
> This tip may not be ideal for accessibility, specifically screen readers. And copy/paste from the browser doesn't work with CSS-generated content. Proceed with caution.
443
450
444
451
<sup>[back to table of contents](#table-of-contents)</sup>
445
452
@@ -467,7 +474,8 @@ nav h1, nav h2, nav h3, nav h4, nav h5, nav h6 {
⚠️ **Note:** The `:is()` pseudo-class isn't supported in IE11.
477
+
> [!NOTE]
478
+
> The `:is()` pseudo-class isn't supported in IE11.
471
479
472
480
<sup>[back to table of contents](#table-of-contents)</sup>
473
481
@@ -680,7 +688,8 @@ If you have HTML elements that are empty, i.e., the content has yet to be set ei
680
688
}
681
689
```
682
690
683
-
⚠️ **Note:** Keep in mind that elements with whitespace aren't considered empty, e.g., `<p class="error-message"> </p>`.
691
+
> [!NOTE]
692
+
> Keep in mind that elements with whitespace aren't considered empty, e.g., `<p class="error-message"> </p>`.
684
693
685
694
<sup>[back to table of contents](#table-of-contents)</sup>
686
695
@@ -694,7 +703,8 @@ Current versions of Chrome, Firefox, Safari, Opera, Edge, and IE11.
694
703
695
704
## Translations
696
705
697
-
⚠️ **Note:** I've had less time available to maintain the growing list of translated tips; adding a new tip requires including it with over a dozen translations. For that reason, translated README files are likely to not include all the tips listed on the main README file.
706
+
> [!NOTE]
707
+
> I've had less time available to maintain the growing list of translated tips; adding a new tip requires including it with over a dozen translations. For that reason, translated README files are likely to not include all the tips listed on the main README file.
0 commit comments