HTML CSS examples for CSS Widget:Image Text
Wrapping a text on image and div
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .container {<!-- w w w. j a va 2 s.co m--> width:701px; } .image { position:relative; float:left; } .image img { float:left; width:301px; height:226px; object-fit:cover; position:relative; } .container p { font-size:21px; overflow:hidden; text-align:justify; } .image-box { height:51px; width:301px; font-weight:701; text-align:center; } </style> </head> <body> <div class="container"> <div class="row"> <div class="col-md-6"> <div class="image"> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> </div> <div class="image-box"> Lorem ipsum dolor sit amet, consectetur a </div> </div> <div class="col-md-6"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris, vitae venenatis diam imperdiet vel. Donec tortor diam, pretium vitae nibh vitae, consectetur lacinia sem. Proin luctus facilisis volutpat. Ut semper sit amet purus quis </p> </div> </div> </div> </body> </html>