I found this CSS code and I ran it to see what it does and it outlined EVERY element on the page,
Can someone explain what the asterisk *
does in CSS?
<style>
* { outline: 2px dotted red }
* * { outline: 2px dotted green }
* * * { outline: 2px dotted orange }
* * * * { outline: 2px dotted blue }
* * * * * { outline: 1px solid red }
* * * * * * { outline: 1px solid green }
* * * * * * * { outline: 1px solid orange }
* * * * * * * * { outline: 1px solid blue }
</style>
div * { outline ...}
and* { outline ... }
. If I use* { outline ... }
and* * { outline ... }
only the last css description is used. – Alli