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 along a baseline. As …

Avatar of Sara Cope
Sara Cope on (Updated on )

What is Vertical Align?

CSS has a property called vertical align. It can be a bit confusing when you first learn about it, so I thought we could help explain what it is for and some use cases.

The basic usage is like …

Avatar of Chris Coyier
Chris Coyier on (Updated on )