HTML CSS examples for CSS Widget:Image Text
Text wrap around image in banner
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .review_author {<!--from www .j ava 2s . c om--> display:block; background:Chartreuse; height:auto; vertical-align:middle; } .review_author>* { vertical-align:middle; } .avatar { display:inline-block; margin-right:11px; } .info { display:inline-block; } .info>* { display:block; } </style> </head> <body> <div class="review_author"> <img src="https://www.java2s.com/style/demo/InternetExplorer.png" height="150" class="avatar"> <div class="info"> <span>Lorem ipsu</span> <a href="http://test">Lorem ipsum</a> </div> </div> </body> </html>