HTML CSS examples for CSS Widget:Image Text
Center an image with text that follows it using CSS
<html> <head> <title>Lorem ipsum dolor s</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .paragraph-with-icon {<!--from w w w . j av a 2 s. c o m--> background:url('https://www.java2s.com/style/demo/Google-Chrome.png') no-repeat; padding:0 0 0 121px; line-height:54px; } </style> </head> <body> <div class="paragraph-with-icon"> Lorem ipsum dolor sit a </div> </body> </html>