Coding for Beginners: CSS Basics #35— How to Vertically Align your Images

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerDesign Engineering3 min

About this video

A short beginner lesson on the CSS vertical-align property, showing how to position an inline image against a line of text using keyword and length values. It is part of a Coding for Beginners series for designers learning HTML and CSS.

What you’ll learn

  • Choose a vertical-align keyword such as baseline, middle or top for an inline image
  • Set vertical-align with a length in pixels, ems or percentages
  • Explain which elements vertical-align applies to: inline and inline-block