anyone can explain it for me , i am studing css layout. But to this code below , i stuck
.container > * {
padding: 10px;
flex: 3 100% ;
}
can you explain the "greater than sign & asterisk" in this case?. This is a original code here:
anyone can explain it for me , i am studing css layout. But to this code below , i stuck
.container > * {
padding: 10px;
flex: 3 100% ;
}
can you explain the "greater than sign & asterisk" in this case?. This is a original code here:
The * means all elements,
and the > means immediate children.
So .container > * means all immediate children of container class.
Here > is a CSS selector which indicates to the child element and * means all the elements.
So the below example means those styles should apply in all the elements which has container class in parent element
.container > * {
padding: 10px;
flex: 3 100% ;
}