Pattern:
:empty
Definition:
The :empty pseudo-class matches elements that have no children at all (including content nodes, such as text).
Examples:
Style every empty <p> element
1 | p:empty { height : 10px ; } |
Pattern:
:empty
Definition:
The :empty pseudo-class matches elements that have no children at all (including content nodes, such as text).
Examples:
Style every empty <p> element
1 | p:empty { height : 10px ; } |
Designed by : w10schools
service@w10schools.com
Please login to continue.