Skip to content

Commit 6a403f5

Browse files
Update general-sibling-selector.md
1 parent 9f8b8dd commit 6a403f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/css/selectors/combinator-selectors/general-sibling-selector.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ keywords:
1313
css combinator,
1414
css general sibling combinator,
1515
]
16+
hide_table_of_contents: true
1617
---
1718

1819
In CSS, the general sibling selector is used to select an element that is preceded by another element. The general sibling selector is represented by the `~` character between two selectors.
1920

2021
<AdsComponent />
22+
<br />
2123

2224
## Syntax
2325

@@ -58,6 +60,7 @@ In the HTML code below, the CSS rule will apply the `font-weight: bold` property
5860
:::
5961

6062
<AdsComponent />
63+
<br />
6164

6265
## Example: Using General Sibling Selector
6366

@@ -109,7 +112,8 @@ Now, you can see the output of the above code in the Browser Window like this:
109112
In the above example, the CSS rule will apply the `font-weight: bold` property to the text inside the `<p>` elements that are preceded by an `<h2>` element.
110113

111114
<AdsComponent />
115+
<br />
112116

113117
## Summary
114118

115-
The general sibling selector (`~`) is used to select an element that is preceded by another element. It is less specific than the adjacent sibling selector (`+`) and more specific than the descendant combinator (` `). The general sibling selector is useful for styling elements that are not directly related but share the same parent.
119+
The general sibling selector (`~`) is used to select an element that is preceded by another element. It is less specific than the adjacent sibling selector (`+`) and more specific than the descendant combinator (` `). The general sibling selector is useful for styling elements that are not directly related but share the same parent.

0 commit comments

Comments
 (0)