CSS Variables - Browser Fallbacks

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI5 min

About this video

Shows how to write fallbacks for CSS variables so browsers without support, such as Internet Explorer, still get usable styles. Notes that browser support was around 78% at filming and that the fallbacks add some redundancy. Aimed at people already using CSS custom properties.

What you’ll learn

  • Write fallback values for CSS custom properties for older browsers
  • Recognise the redundancy that fallbacks add to CSS variable code