CSS background-position Property


p>Background position property is used to control the position of an image in the background.

Syntax

background-postion: value;

Example

 body {
   background-image: url("images/fl/bg.jpg");
   background-position:right;
   }

Example

<html>
     <head>
        <style type="text/css">
        .bgposition {
           background-image:url("fl/img/bg.png");
           background-position:right;
           padding:30px;
        }
        </style>
        </head>
        <body>
        <div class="bgposition">background-image property</div>
     </body>
    </html>
Output
background-image property

Share this article on