Interactive online courses HTML Academy
2026-03-09 12:56 Diff

When the background image is larger than the block, it is cropped. You can also control how much of the image is visible with the background-position property.

In order to do this, sometimes you can use relative values (percentages) and sometimes absolute values (pixels).

By the way, you can use negative values in addition to positive ones. And you can also combine pixels and percentages.