Align text with respect to image css - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text Alignment

Description

Align text with respect to image 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">
div.left {
   float:left;
}
</style> <!--from   w w w . ja v a 2 s.co m-->
 </head> 
 <body> 
  <section> 
   <div class="left"> 
    <img src="https://www.java2s.com/style/demo/Google-Chrome.png" alt=""> 
   </div>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 pharet 
  </section>  
 </body>
</html>

Related Tutorials