So I have few elements in .card
class and I want to apply w3-card-4
class to it.
.card {
background-color: #FFFFFF;
}
.w3-card-4 > .card
So I have few elements in .card
class and I want to apply w3-card-4
class to it.
.card {
background-color: #FFFFFF;
}
.w3-card-4 > .card
Copyright © 2021 Jogjafile Inc.
There should be no spaces in between
.w3-card-4 > .card
this is used when element ofclass="card"
is direct child of element withclass="w3-card-4"
For the html part. you have to include both classes in html too. like this:
You don't have to include it in html if you are adding it through javascript / jQuery.