An open API service indexing awesome lists of open source software.

https://github.com/swanie21/css-pseudo-classes

CSS Pseudo Class Examples
https://github.com/swanie21/css-pseudo-classes

css css-pseudo-classes

Last synced: 2 months ago
JSON representation

CSS Pseudo Class Examples

Awesome Lists containing this project

README

          

# CSS Pseudo-classes

[View Examples](http://kirstenswanson.io/css-pseudo-classes/)

### Pseudo-classes define a special state of an element. A pseudo-class is a keyword that is added to the end of selectors to specify the special state.

```
selector:pseudo-class {
property: value;
}
```
pseudo-class examples

In this repo I have included several pseudo-class examples:
```
:first-of-type
```
```
:last-of-type
```
```
:only-of-type
```
```
:nth-of-type
```
```
:first-child
```
```
:last-child
```
```
:first-letter
```
```
:first-line
```
```
::before
```
```
::after
```
```
:link
```
```
:visited
```
```
:hover
```