Setting property for two backgrounds using css - HTML CSS CSS Property

HTML CSS examples for CSS Property:background

Description

Setting property for two backgrounds using css

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 {<!-- ww w. ja  v a2s.c o  m-->
   background-image: url('https://www.java2s.com/style/demo/InternetExplorer.png') ,url('https://www.java2s.com/style/demo/Google-Chrome.png') ;
   background-repeat: repeat-y;
   background-position: top left, top right;
   width:200px;height:100px;border:1px solid black;
}


      </style> 
 </head> 
 <body> 
  <div class="bg"></div>  
 </body>
</html>

Related Tutorials