Languages
[Edit]
EN

CSS - custom background image position

0 points
Created by:
Kadeem-Craig
516

In this article, we would like to show you how to set custom background image position using CSS.

Quick solution:

Note:

The default value of background-position property is top 0 left 0 (top-left corner).

 

Practical example

Edit

To set the background image position, you can use custom values and various units (e.g 10px, 15em or 25%).

Below we present example cases of custom background-image position.

References

Edit
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join