Coding for Beginners: Recap #48—Adding Text on Images and Adding Background Images

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerDesign Engineering6 min

About this video

A beginner lesson in the Coding for Beginners series that shows how to place a text label over an image with HTML and CSS, covering corner and centred positions and making the text legible. It is aimed at designers learning basic HTML and CSS.

What you’ll learn

  • Position a text label in any corner of an image with absolute positioning
  • Centre text over an image using offset and transform translate
  • Keep an image responsive with a 100% width and automatic height