Text positioning over image - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text Position

Description

Text positioning over image

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor sit amet, consectetur adip</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from  ww w. j  a v a  2s  .  c  o  m-->
 <body> 
  <div style="width: 300px;
height: 300px;
background: transparent url(https://www.java2s.com/style/demo/Google-Chrome.png) 0 0 no-repeat;
position: relative;"> 
   <div style="width:90%;padding:5%"> 
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus maur</p> 
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt t</p> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials