Coding for Beginners: Recap #50—Custom Gradient Backgrounds and Making a Hero-Image

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerWeb Design6 min

About this video

This short lesson from a beginner HTML and CSS series shows designers how to change linear gradient direction and how to style a full-width hero image with background-position, background-size and height. It is aimed at designers with little or no coding experience.

What you’ll learn

  • Set the direction of a linear gradient with side or corner values
  • Style a hero image with background-size, background-position and a fixed height
  • Add a fallback background colour for an image header