CSS vertical-align: text-bottom;
Viewed 637 times since Thu, Sep 3, 2020
HTML: <div class="parent"> <div class="child"> This text is vertically aligned to bottom. </div></div> CSS: .parent { width: 300px; height: 50px; display: table; border: 1px solid red;}.child { display: table-cell;...
Read More
CSS transition Property
Viewed 447 times since Wed, Sep 2, 2020
<style> div { width: 100px; height: 100px; background: red; transition: width 2s;} div:hover { width: 300px;}</style> Sources: https://www.w3schools.com/cssref/css3_pr_transition.asp https://stackoverflow.com/questions/55158038/how...
Read More
The :empty pseudo selector will select elements that contain either nothing or only an HTML comment.
Viewed 429 times since Sun, Oct 4, 2020
div:empty{display: none;} Ref: https://css-tricks.com/almanac/selectors/e/empty/
Read More
CSS show/hide next elements
Viewed 428 times since Sun, Oct 4, 2020
.node2 ? #my2 { display:none; }Ref:https://stackoverflow.com/questions/35085244/css-show-hide-next-elements
Read More