Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS * selector

CSS * selector

Complete CSS SelectorComplete CSS Selector Reference Manual

Example

Select all elements and set their background color:

{

background-color:yellow;

}

Try it »


Definition and Usage

Example

Choice

All elements inside an element:

div *

{

background-color:yellow;

}

Try it »


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the * selector.


Complete CSS SelectorComplete CSS Selector Reference Manual