HTML CSS examples for CSS Widget:Image Text
Scale an image instead of wrapping text around it when the browser window is resized
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> article p {<!--from w w w .j av a 2s . com--> overflow:hidden; } article img { float:left; max-width:81%; } article { border:2px solid; } .clearfix:before, .clearfix:after { content:" "; display:table; } .clearfix:after { clear:both; } </style> </head> <body> <article class="clearfix"> <img src="https://www.java2s.com/style/demo/Firefox.png"> <p>Lorem ipsum dolo</p> </article> </body> </html>