Set the Background Image Position - HTML CSS CSS Property

HTML CSS examples for CSS Property:background-image

Introduction

The following example demonstrates how to set the background image position 100 pixels away from the left side.

Demo Code

ResultView the demo in separate window

<html>
   <head>
      <style>
         body {<!--from   w w w  .j  a va  2s. c o  m-->
            background-image: url("https://www.java2s.com/style/demo/Opera.png");
            background-position:100px;
         }
      </style>
   </head>
   <body>
      <p>Tutorials point</>
   </body>
</html>

Related Tutorials