Skip to content

Commit

Permalink
Add word "tilde" to subsequent-sibling combinator page (#30723)
Browse files Browse the repository at this point in the history
* Add word "tilde" to subsequent-sibling combinator page

Adding the word "tilde" to this page makes it possible to find this page by searching for the name of the character used for the selector.

* Update files/en-us/web/css/subsequent-sibling_combinator/index.md

---------

Co-authored-by: Jean-Yves Perrier <[email protected]>
  • Loading branch information
benlk and teoli2003 authored Dec 2, 2023
1 parent 6539cd8 commit 19c1daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/css/subsequent-sibling_combinator/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ browser-compat: css.selectors.subsequent-sibling

{{CSSRef("Selectors")}}

The **subsequent-sibling combinator** (`~`) separates two selectors and matches _all instances_ of the second element that follow the first element (not necessarily immediately) and share the same parent element.
The **subsequent-sibling combinator** (`~`, a tilde) separates two selectors and matches _all instances_ of the second element that follow the first element (not necessarily immediately) and share the same parent element.

In the following example, the subsequent-sibling combinator (`~`) helps to select and style paragraphs that are both siblings of an image and appear after any image.

Expand Down

0 comments on commit 19c1daf

Please sign in to comment.