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
1.[Get Rid of Margin Hacks With Flexbox](#get-rid-of-margin-hacks-with-flexbox)
37
37
1.[Use Attribute Selectors with Empty Links](#use-attribute-selectors-with-empty-links)
38
+
1.[Control Specificity Better With `:is()`](#control-specificity-better-with-is)
38
39
1.[Style "Default" Links](#style-default-links)
39
40
1.[Intrinsic Ratio Boxes](#intrinsic-ratio-boxes)
40
41
1.[Style Broken Images](#style-broken-images)
@@ -45,7 +46,6 @@ A collection of tips to help take your CSS skills pro.
45
46
1.[Use Pointer Events to Control Mouse Events](#use-pointer-events-to-control-mouse-events)
46
47
1.[Set `display: none` on Line Breaks Used as Spacing](#set-display-none-on-line-breaks-used-as-spacing)
47
48
1.[Use `:empty` to Hide Empty HTML Elements](#use-empty-to-hide-empty-html-elements)
48
-
1.[Control Specificity Better With `:is()`](#control-specificity-better-with-is)
49
49
50
50
51
51
### Use a CSS Reset
@@ -425,6 +425,34 @@ That's pretty convenient.
425
425
<sup>[back to table of contents](#table-of-contents)</sup>
426
426
427
427
428
+
### Control Specificity Better with `:is()`
429
+
430
+
The `:is()` pseudo-class is used to target multiple selectors at onece, reducing redundancy and enhancing code readability. This is incredibly useful for writing large selectors in a more compact form.
**Note:** The `:is()` pseudo-class isn't supported in IE11.
452
+
453
+
<sup>[back to table of contents](#table-of-contents)</sup>
454
+
455
+
428
456
### Style "Default" Links
429
457
430
458
Add a style for "default" links:
@@ -638,34 +666,6 @@ If you have HTML elements that are empty, i.e., the content has yet to be set ei
638
666
<sup>[back to table of contents](#table-of-contents)</sup>
639
667
640
668
641
-
### Control Specificity Better with `:is()`
642
-
643
-
The `:is()` pseudo-class is used to target multiple selectors at onece, reducing redundancy and enhancing code readability. This is incredibly useful for writing large selectors in a more compact form.
0 commit comments