Image and text in div with border - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text

Description

Image and text in div with border

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--   w  w w.j ava 2  s .  c om-->
 <body> 
  <div style="border-style:solid; border-color:aqua; border-width:3px;"> 
   <img id="" src="https://www.java2s.com/style/demo/Opera.png" align="left"> 
   <div> 
    <span>Lorem ipsum dolor<br> <span>Lorem ipsum dolor<br> <span>Lorem ipsum dolo</span> </span> </span> 
   </div> 
   <div style="clear:both;" < div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials