Image and text coming in same line - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text

Description

Image and text coming in same line

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">
.pgnfigure {<!-- ww w .  j av a  2  s.  c  om-->
   padding-bottom:11em;
}

.para_Grey {
   text-align:justify;
   word-wrap:break-word;
}
</style> 
 </head> 
 <body> 
  <div class="pgnfigure"> 
   <img alt="" align="left" class="headImg" src="https://www.java2s.com/style/demo/InternetExplorer.png" assetid="er:#18"> 
  </div> 
  <div class="para_Grey">
    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 mauris, vitae venenatis diam imperdiet vel. Donec tortor diam, pretium vitae nibh vitae, consectetu 
  </div>  
 </body>
</html>

Related Tutorials