BACKGROUND POSITION Syntax of background position is
body {
background-image: url("Helloworld.jpg");
background-position: right top;
}
Three are different types by which we can set the postion of image
For eg:
- Right-Top
- Top-Right
Program
- Bottom etc.
INPUT
<!DOCTYPE html> <html> <head> <style> body { background-image: url("World.jpg"); background-position: right top; } </style> </head> <body> <h1>BACKGROUND-POSITION</h1> <p>Now you can see the image is eset ate right top.</p> </body> </html>.
OUTPUT
![]()