Responsive - text on image - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

Responsive - text on image

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">
.row6 {<!--   w  w  w  . ja  v a  2s.com-->
   background:none;
   width:100%;
   height:131px;
   border:0px dotted Chartreuse;
   font:bold 2.8vw arial, sans-serif;
   margin:21px auto;
}

.row6>.bgImage {
   width:100%;
   height:100%;
   margin:0 auto;
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png') no-repeat;
   background-size:100%
}

#dd7 {
   margin-left:45.8%;
   margin-top:2.3%;
   float:left;
}
</style> 
 </head> 
 <body> 
  <div class="row6"> 
   <div class="bgImage"> 
    <div id="dd7">
      Lorem 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials