Search⌘ K

Sizing Backgrounds Using Length Measurements

As opposed to keywords, backgrounds may also be sized using length measurements. Here's how it works.

We'll cover the following...

Using length measurements, a vaild declaration looks like this:

NAME_
CSS
p {
background-size: 150px 200px
}

When length measurements are used, the background image is scaled to the specified ...