Vertically align multiple text next to an image with CSS - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text Alignment

Description

Vertically align multiple text next to an image with CSS

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 av a2  s  .c  o m-->
 <body> 
  <div style="width: 150px;"> 
   <div style="padding: 5px"> 
    <img src="https://www.java2s.com/style/demo/InternetExplorer.png" width="50px" style="float:left"> 
    <span style="font-size:10px;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor h</span> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials