Skip to content

Commit 40cc71c

Browse files
authored
Merge pull request #16 from TheAjinkya/patch-1
Update Collection-of-CSS-Questions.md
2 parents b2ad445 + 252ce16 commit 40cc71c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CSS/Collection-of-CSS-Questions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ For example with this selector `p span`, browsers firstly find all the `<span>`
363363

364364
### Describe pseudo-elements and discuss what they are used for.
365365

366-
A CSS pseudo-element is a keyword added to a selector that lets you style a specific part of the selected element(s). They can be used for decoration (`:first-line`, `:first-letter`) or adding elements to the markup (combined with `content: ...`) without having to modify the markup (`:before`, `:after`).
366+
A CSS pseudo-element is a keyword added to a selector that lets you style a specific part of the selected element(s). They can be used for decoration (`::first-line`, `::first-letter`) or adding elements to the markup (combined with `content: ...`) without having to modify the markup (`:before`, `:after`).
367367

368-
- `:first-line` and `:first-letter` can be used to decorate text.
368+
- `::first-line` and `::first-letter` can be used to decorate text.
369369
- Used in the `.clearfix` hack as shown above to add a zero-space element with `clear: both`.
370370
- Triangular arrows in tooltips use `:before` and `:after`. Encourages separation of concerns because the triangle is considered part of styling and not really the DOM.
371371

0 commit comments

Comments
 (0)