Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> #myDIV { height:200px; border: 10px dashed black; padding: 25px; background-position-x: left; background-image: url("img_tree.gif"); background-repeat: no-repeat; } </style> </head> <body> <h1>The background-position-x Property</h1> <div id="myDIV"> This demo shows how to specify where the background image should be positioned on x-axis. </div> </body> </html>