Answers for "select all children css selector"

CSS
5

how to target all child elements css

.wrapper * {
    color: blue;
    margin: 0 100px; /* Only for demo */
}
.myTestClass > * {
    color:red;
    margin: 0 20px;
}
Posted by: Guest on February-25-2021
2

css select all immediate children

.parent > *
Posted by: Guest on March-28-2021

Browse Popular Code Answers by Language