Skip to content

Commit 645a1cc

Browse files
Update child-selector.md
1 parent 9f8b8dd commit 645a1cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/css/selectors/combinator-selectors/child-selector.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ sidebar_position: 2
66
tags: [selector, combinator, child]
77
description: "Child selector is used to select an element that is a direct child of another element."
88
keywords: [child selector, css child selector, css selector, css combinator, css child combinator]
9+
hide_table_of_contents: true
910
---
1011

1112
In CSS, the child selector is used to select an element that is a direct child of another element. The child selector is represented by the `>` character between two selectors.
1213

1314
<AdsComponent />
15+
<br />
1416

1517
## Syntax
1618

@@ -58,6 +60,7 @@ The child selector is more specific than the descendant selector and less specif
5860
:::
5961

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

6265
## Example: Using Child Selector
6366

@@ -164,4 +167,3 @@ In the above example, the CSS rule will apply the color `red` to the text inside
164167
- [Parent Selector](#): The parent selector selects an element that is a direct parent of another element.
165168
- [Ancestor Selector](#): The ancestor selector selects an element that is an ancestor of another element.
166169
- [Universal Selector](#): The universal selector selects all elements in a document.
167-
-

0 commit comments

Comments
 (0)