Update format

This commit is contained in:
Angelos Chalaris
2020-04-30 13:21:04 +03:00
parent d9fd2d23c3
commit 2fbd3e0737
55 changed files with 412 additions and 571 deletions

View File

@ -5,6 +5,9 @@ tags: visual,beginner
Changes the styling of text selection.
- `::selection` defines a pseudo selector on an element to style text within it when selected. Note that if you don't combine any other selector your style will be applied at document root level, to any selectable element.
- Requires prefixes for full support and is not actually in any specification.
```html
<p class="custom-text-selection">Select some of this text.</p>
```
@ -20,8 +23,3 @@ Changes the styling of text selection.
color: white;
}
```
#### Explanation
- `::selection` defines a pseudo selector on an element to style text within it when selected. Note that if you don't combine any other selector your style will be applied at document root level, to any selectable element.
- Requires prefixes for full support and is not actually in any specification.