CSS Background Positioning - HTML CSS CSS Property

HTML CSS examples for CSS Property:background-position

Description

CSS Background Positioning

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
.wrapper {<!--   w w  w . j  a  va2 s . c o  m-->
   width:76%;
   height:100%;
   background-color:Chartreuse;
   background-position:center;
   margin:0 auto;
}
</style> 
 </head> 
 <body style="background-color:black;"> 
  <div class="wrapper">
    Lorem ipsum dolor sit amet, c 
  </div>  
 </body>
</html>

Related Tutorials