
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
Set the Background Image Position with CSS
To set the background image position, use the background-position property. You can try to run the following code to learn how to work with the background-position property:
Example
It sets the background image position 80 pixels away from the left side:
<html> <head> <style> body { background-image: url("/css/images/css.jpg"); background-position:80px; } </style> </head> <body> <p>Tutorials point</> </body> </html>
- Related Articles
- Set background image as fixed with CSS
- Set the background image of an element with CSS
- Set a radial gradient as the background image with CSS
- Set a linear gradient as the background image with CSS
- Set all the background image properties in one section with CSS
- Repeat the background image with CSS
- Specify the background image with CSS
- Set the Background Attachment with CSS
- Specify position of the background images with CSS
- Show the background image only once with CSS
- How to set background image in CSS using jQuery?
- Perform Animation on background-position property with CSS
- Achieve Responsiveness for background image with CSS
- How to set the starting position of a background image in JavaScript DOM?
- Setting Background Position using CSS

Advertisements