Make a feature strip background with CSS - HTML CSS CSS Property

HTML CSS examples for CSS Property:background

Description

Make a feature strip background with 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">

#wrap {<!-- w  ww .j a  va 2 s. c  om-->
   width:80%;
   border:1px solid black;
   height:500px;
   margin: 0 auto;
}
#background {
   position:relative;
   overflow:hidden;
}
#background img {
   position:absolute;
   top:0;
   left:0;
   z-index:-1;
   width:100%;
   height:100%;
}


      </style> 
 </head> 
 <body> 
  <div id="wrap"> 
   <h1>Hello, world!</h1> 
   <div id="background"> 
    <img src="https://www.java2s.com/style/demo/Safari.png" alt="bg"> 
    <p id="content"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </p> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials