Coding for Beginners: CSS Basics #36— Placing Text on an Image

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerWeb Design4 min

About this video

A beginner HTML and CSS lesson for designers on placing a text label over an image in five positions: top left, bottom left, centred, top right and bottom right. It uses absolute positioning inside a relatively positioned section, with a responsive full-width image.

What you’ll learn

  • Position a text label over an image with absolute positioning in CSS
  • Keep an image full width and responsive with width 100% and height auto
  • Place a label in five positions using top, bottom, left and right offsets