Horizontal background css position - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Position

Description

Horizontal background css position

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.bg-test {<!--   w w  w.j a  v a  2s .com-->
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png') 100px 0px no-repeat Chartreuse;
   width:351px;
   height:351px;
}
</style> 
 </head> 
 <body> 
  <div class="bg-test"></div>  
 </body>
</html>

Related Tutorials