...

/

Sizing Backgrounds Using Length Measurements

Sizing Backgrounds Using Length Measurements

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

Using length measurements, a vaild declaration looks like this:

Press + to interact
p {
background-size: 150px 200px
}

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