Center an image and text in a short paragraph - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text

Description

Center an image and text in a short paragraph

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from  w  w  w .  j av  a2  s.  c  om-->
 <body> 
  <p style="text-align:center;"> <img width="16" height="16" src="https://www.java2s.com/style/demo/Firefox.png" style="position:relative; top: 2px;">Lorem ipsu</p>  
 </body>
</html>

Related Tutorials