+ 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?

10th Feb 2017, 3:05 AM
Wellington Lopes Regis
Wellington Lopes Regis - avatar
2 Answers
+ 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.
10th Feb 2017, 3:28 AM
Tamra
Tamra - avatar
+ 1
Thank you
10th Feb 2017, 3:59 AM
Wellington Lopes Regis
Wellington Lopes Regis - avatar