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) Yes (1) Yes (1) Yes (12) Yes (5) Yes (5)
Mobile Yes (1) Yes (4) Yes (1) Yes (12) Yes (6) Yes (2)

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