CSS Tutorial

CSS Background Position

!DOCTYPE html>
<title>Example</title>
<style>
  div {
    padding: 70px;
    background-image:url("/pix/samples/bg2.png");
    background-repeat:no-repeat;
    background-position: 100px;
  }
</style>
<div>
  The background image is positioned 100 pixels in from the left.
</div>