+ 1
Notation >* in css
I've come across a class in CSS with the notation >*, as in: .container>*{ ... } Could someone please explain me what that means?
2 Respuestas
+ 6
> is a selector that looks for elements that are children of the element on the left (which means contained in it).
Ex: div > p selects all p elements that are inside of a div element.
* means to select all elements.
Ex: .container > * selects anything inside an element of class container.
+ 1
Thank you