CSS Selector Level 2 » Universal

The universal selector (asterisk symbol) will select every element of any type.

Syntax

Copy
* {
    /* declarations */
}

Example

Copy
* {
    /* common practice but should be used with attention */
    padding: 0px;
    margin: 0px;
}

Every single element will get zero pixel margin and padding.

Try example in CodePen

Browser support

Platform Chrome Firefox Safari Edge Internet Explorer Opera
Desktop Yes (1.0) Yes (1.0) Yes (1.0) Yes (12.0) Yes (5.0) Yes (5.0)
Mobile Yes (1.0) Yes (4.0) Yes (1.0) Yes (12.0) Yes (6.0) Yes (2.0)

Please wait a moment, the comments start loading now...
explorermozillachromesafariopera