@@ -99,8 +99,8 @@ html, body {
99
99
}
100
100
101
101
body {
102
- -webkit-align-items : center ;
103
- -ms-flex-align : center ;
102
+ -webkit-align-items : center ;
103
+ -ms-flex-align : center ;
104
104
align-items : center ;
105
105
display : -webkit-flex ;
106
106
display : flex ;
@@ -133,7 +133,7 @@ Use the `:not()` pseudo-class so no comma is added to the last item.
133
133
134
134
### Select Items Using Negative ` nth-child `
135
135
136
- Use negative ` nth-child ` in CSS to select items 1 through n.
136
+ Use negative ` nth-child ` in CSS to select items 1 through n.
137
137
138
138
``` css
139
139
li {
@@ -217,7 +217,7 @@ Implement CSS-only sliders using `max-height` with overflow hidden:
217
217
}
218
218
```
219
219
220
- The element expands to the ` max-height ` value on hover and the slider displays as a result of the overflow.
220
+ The element expands to the ` max-height ` value on hover and the slider displays as a result of the overflow.
221
221
222
222
<sup >[ back to table of contents] ( #table-of-contents ) </sup >
223
223
@@ -278,7 +278,7 @@ Now column gutters always appear evenly-spaced.
278
278
279
279
### Use Attribute Selectors with Empty Links
280
280
281
- Display links when the ` <a> ` element has no text value but the ` href ` attribute has a link:
281
+ Display links when the ` <a> ` element has no text value but the ` href ` attribute has a link:
282
282
283
283
``` css
284
284
a [href ^= " http" ]:empty ::before {
@@ -334,7 +334,7 @@ To create a box with an intrinsic ratio, all you need to do is apply top or bott
334
334
}
335
335
336
336
.container div {
337
- border : 2px dashed #ddd ;
337
+ border : 2px dashed #ddd ;
338
338
height : 100% ;
339
339
left : 0 ;
340
340
position : absolute ;
@@ -353,7 +353,7 @@ Using 20% for padding makes the height of the box equal to 20% of its width. No
353
353
Make broken images more aesthetically-pleasing with a little bit of CSS:
354
354
355
355
``` css
356
- img {
356
+ img {
357
357
display : block ;
358
358
font-family : Helvetica , Arial , sans-serif ;
359
359
font-weight : 300 ;
@@ -368,13 +368,13 @@ img {
368
368
Now add pseudo-elements rules to display a user message and URL reference of the broken image:
369
369
370
370
``` css
371
- img :before {
371
+ img :before {
372
372
content : " We're sorry, the image below is broken :(" ;
373
373
display : block ;
374
374
margin-bottom : 10px ;
375
375
}
376
376
377
- img :after {
377
+ img :after {
378
378
content : " (url: " attr (src ) " )" ;
379
379
display : block ;
380
380
font-size : 12px ;
@@ -391,7 +391,7 @@ Learn more about styling for this pattern in [Ire Aderinokun](https://github.com
391
391
After setting the base font size at the root (` html { font-size: 16px; } ` ), set the font size for textual elements to ` em ` :
392
392
393
393
``` css
394
- h2 {
394
+ h2 {
395
395
font-size : 2em ;
396
396
}
397
397
@@ -462,5 +462,6 @@ Current versions of Chrome, Firefox, Safari, Opera, Edge, and IE11.
462
462
463
463
* [ Español] ( https://github.com/AllThingsSmitty/css-protips/tree/master/translations/es-ES )
464
464
* [ Français] ( https://github.com/AllThingsSmitty/css-protips/tree/master/translations/fr-FR )
465
+ * [ Português do Brasil] ( https://github.com/AllThingsSmitty/css-protips/tree/master/translations/pt-BR )
465
466
* [ русский] ( https://github.com/AllThingsSmitty/css-protips/tree/master/translations/ru-RU )
466
467
* [ 简体中文] ( https://github.com/AllThingsSmitty/css-protips/tree/master/translations/zh-CN )
0 commit comments