Coding for Beginners: CSS Basics #77— How to Indent Text with CSS

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerDesign Engineering2 min

About this video

A short beginner lesson on the CSS text-indent property, which sets the empty space before lines of text in a text block, including percentage and negative values. It is aimed at designers learning basic HTML and CSS.

What you’ll learn

  • Indent the first line of a text block with the CSS text-indent property
  • Set text-indent as a percentage of the containing block's width
  • Use negative text-indent values to outdent text