Recently I came across * *
in CSS.
Site reference - Site Link.
For a single *
usage in CSS style sheet, Internet and Stack Overflow is flooded with examples, but I am not sure about using two * *
symbol in CSS.
I googled it, but unable to find any relevant information about this, as a single *
selects all elements, but I am not sure why the site used it twice. What is the missing part for this, and why is this hack used (if it is a hack)?
Answer. Answer: A selector is one of the properties of the object that we use along with the component configuration. A selector is used to identify each component uniquely into the component tree, and it also defines how the current component is represented in the HTML DOM.
1. Asterisk (*): It is used for replacing 1 or more characters from a selector attribute.
Just like any other time you put two selectors one after another (for example li a
), you get the descendant combinator. So * *
is any element that is a descendant of any other element — in other words, any element that isn't the root element of the whole document.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With