Skip to content

Commit 3ea174f

Browse files
Note update
1 parent 5a4195a commit 3ea174f

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

README.md

+21-11
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ Now elements will be stripped of margins and padding, and `box-sizing` lets you
6767

6868
#### [Demo](https://codepen.io/AllThingsSmitty/pen/kkrkLL)
6969

70-
⚠️ **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.
7172
7273
<sup>[back to table of contents](#table-of-contents)</sup>
7374

@@ -118,7 +119,8 @@ button {
118119
}
119120
```
120121

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.
122124
123125
<sup>[back to table of contents](#table-of-contents)</sup>
124126

@@ -253,14 +255,15 @@ Want to center something else? Vertically, horizontally...anything, anytime, any
253255

254256
#### [Demo](https://codepen.io/AllThingsSmitty/pen/GqmGqZ)
255257

256-
⚠️ **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.
257260
258261
<sup>[back to table of contents](#table-of-contents)</sup>
259262

260263

261264
### Use `aspect-ratio` Instead of Height/Width
262265

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.
264267

265268
```css
266269
img {
@@ -273,7 +276,8 @@ Learn more about the `aspect-ratio` property in this [web.dev post](https://web.
273276

274277
#### [Demo](https://codepen.io/AllThingsSmitty/pen/MWxwoNx/)
275278

276-
⚠️ **Note:** `aspect-ratio` and `object-fit` aren't supported in IE11.
279+
> [!NOTE]
280+
> `aspect-ratio` and `object-fit` aren't supported in IE11.
277281
278282
<sup>[back to table of contents](#table-of-contents)</sup>
279283

@@ -290,7 +294,8 @@ ul > li:not(:last-child)::after {
290294

291295
Use the `:not()` pseudo-class and no comma will be added to the last item.
292296

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.
294299
295300
<sup>[back to table of contents](#table-of-contents)</sup>
296301

@@ -336,7 +341,8 @@ There's no reason not to use SVG for icons:
336341

337342
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.
338343

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:
340346
341347
```css
342348
.no-svg .icon-only::after {
@@ -439,7 +445,8 @@ That's pretty convenient.
439445

440446
#### [Demo](https://codepen.io/AllThingsSmitty/pen/zBzXRx)
441447

442-
⚠️ **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.
443450
444451
<sup>[back to table of contents](#table-of-contents)</sup>
445452

@@ -467,7 +474,8 @@ nav h1, nav h2, nav h3, nav h4, nav h5, nav h6 {
467474

468475
#### [Demo](https://codepen.io/AllThingsSmitty/pen/rNRVxdx)
469476

470-
⚠️ **Note:** The `:is()` pseudo-class isn't supported in IE11.
477+
> [!NOTE]
478+
> The `:is()` pseudo-class isn't supported in IE11.
471479
472480
<sup>[back to table of contents](#table-of-contents)</sup>
473481

@@ -680,7 +688,8 @@ If you have HTML elements that are empty, i.e., the content has yet to be set ei
680688
}
681689
```
682690

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>`.
684693
685694
<sup>[back to table of contents](#table-of-contents)</sup>
686695

@@ -694,7 +703,8 @@ Current versions of Chrome, Firefox, Safari, Opera, Edge, and IE11.
694703

695704
## Translations
696705

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.
698708
699709
* [简体中文](https://github.com/AllThingsSmitty/css-protips/tree/master/translations/zh-CN)
700710
* [正體中文](https://github.com/AllThingsSmitty/css-protips/tree/master/translations/zh-TW)

0 commit comments

Comments
 (0)