HTML CSS examples for CSS Widget:Image Text
Center an image and text in a short paragraph
<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>