Home » Categories » CSS Tricks | ||||
The :empty pseudo selector will select elements that contain either nothing or only an HTML comment. |
||||
Article Number: 50 | Rating: Unrated | Last Updated: Sun, Oct 4, 2020 at 11:48 PM
|
||||
div:empty{display: none;}
Ref: https://css-tricks.com/almanac/selectors/e/empty/ |
||||
| ||||
Attachments
There are no attachments for this article.
| ||||
Comments There are no comments for this article. Be the first to post a comment. | ||||
CSS show/hide next elements
Viewed 449 times since Sun, Oct 4, 2020
CSS transition Property
Viewed 473 times since Wed, Sep 2, 2020
CSS vertical-align: text-bottom;
Viewed 668 times since Thu, Sep 3, 2020
|