- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Which property is used in CSS to control the position of an image in the background?
To control the position of an image in the background, use the background-position property.
Example
You can try to run the following code to learn how to work with the background-position property. It sets the background image position 30 pixels away from the left side:
<html> <head> <style> body { background-image: url("/css/images/css.jpg"); background-position:30px; } </style> </head> <body> <p>Tutorials point</> </body> </html>
Advertisements