Interactive Guide with Live Examples
Applied when user hovers over an element
Applied when an element receives focus
Applied when an element is being activated (clicked)
Applied to visited links
Target elements based on their position
Selects elements with no children
Applied to disabled form elements
Applied to checked checkboxes and radio buttons
Applied based on form validation state
Applied to the target element of a URL fragment
Insert content before or after an element
Styles the first letter of an element
This paragraph has a styled first letter. Lorem ipsum dolor sit amet, consectetur adipiscing elit. The first letter is larger and styled differently from the rest of the text.
Styles the first line of an element
This is the first line which will be styled differently. This is the second line and subsequent lines that will have normal styling. The first line pseudo-element only affects the first line of text.
Styles the selected text
Select this text to see the custom selection styling! The background and text color will change when you highlight this text.
Styles placeholder text in form fields