In CSS what does it mean by this? .wb is a class and I also understand that .wb-chIld may be its child classes which inherits properties of that. now what is the > and * ? under which circumstances we write code like this?
.wb, .wb-child > * {
border-width: 2px;
}
EDIT: @misterManSam is right, only the immediate child
wb1will have theborder-width: 2pxstyle applied'.wb-child > *' meant all tags after the 'wb-child' class. Refer to your example with below HTML codes:
Both 'wb1' and 'wb2' classes will have the 'border-width: 2px;' style applied.