Select any property below and we’ll show you step-by-step how to use the property, with video demo, tips and practical examples you can code for yourself.
background-color sets the color of the background of an element, while background-image sets an image as the background of an element.
background-position sets the position of a background image within its container. It can be set using keywords (such as top or center) or by specifying an exact pixel or percentage value.
background-repeat: repeat tiles the background image both horizontally and vertically to fill the entire container, while background-repeat: no-repeat displays the image only once, without tiling.
background-size sets the size of a background image. It can be set using keywords (such as cover or contain) or by specifying an exact pixel or percentage value.
background-attachment: fixed fixes the background image in place, so that it remains stationary while the page scrolls.
Copyright 2023