Set the background image position 100 pixels away from the left side and 200 pixels down from the top. - HTML CSS CSS Property

HTML CSS examples for CSS Property:background-image

Description

Set the background image position 100 pixels away from the left side and 200 pixels down from the top.

Demo Code

ResultView the demo in separate window

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

Related Tutorials