Use texture image as background - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text

Description

Use texture image as background

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">
.promotion {<!--from  w w w.ja  v  a 2 s  .  c  o m-->
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png') repeat top left;
   width:100%;
   height:401px;
}
</style> 
 </head> 
 <body> 
  <div class="promotion"></div>  
 </body>
</html>

Related Tutorials