div > a{
}
applies properties to <a>
child. But how can I select any type of element, not just <a>
?
div > a{
}
applies properties to <a>
child. But how can I select any type of element, not just <a>
?
This should select all direct child objects of all DIVs.
div > * {
}
Use the below.
div > * {
Your css attributes should be here
}
Hope this helps.
Use the following...
div > * {}