DEV Community

loading...

Discussion on: My Misconceptions about the Universal Selector in CSS

Collapse
fluffy profile image
fluffy

The main reason why I use the * selector is for quick-and-dirty debugging of a page to figure out why some nesting isn't behaving the way I thought it would (using e.g. * { background-color: rgba(255,0,0,0.1); } or * { border: solid red 1px; } or the like), although now that all of the browsers have a good element inspector that's a lot less useful.