V

Last updated on

The visibility property in CSS has two different functions. It hides rows and columns of a table, and it also hides an element *without changing the layout*. p { visibility: hidden; } tr { visibility: collapse; } visibility has four valid values: visible, hidden, collapse, and inherit. We’ll go through each of them to learn

Continue reading →

Last updated on

The vertical-align property in CSS controls how elements set next to each other on a line are lined up. img { vertical-align: middle; } In order for this to work, the elements need to be set alone a baseline. As in, inline (e.g.<span>, <img>) or inline-block (e.g. as set by the display property) elements. The

Continue reading →