Select a range of content WITHOUT JavaScript

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

ShortIntermediateUI1 min

About this video

A short CSS tutorial showing how to let users select a range of content on a web page using only CSS, without JavaScript.

What you’ll learn

  • Style a text selection range using CSS alone