Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
body { 
  background-image: url('w3css.gif');
  background-repeat: no-repeat;
  background-position-x: 50%; 
}
</style>
</head>
<body>
<h1>The background-position-x Property</h1>
<p>Here, the background image will be positioned 50% from left side.</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.php?filename=trycss_background-position-x_percent by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:34:57 GMT -->
</html>