HTML CSS examples for CSS Widget:Image Text
Text & Image inside a div: overlap image over the div and wrap text around image
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .LP-TextBoxes {<!-- w ww . j a v a 2 s . co m--> overflow:visible; background:lightGreen; width:51%; padding:16px; } .FP-image { display:block; float:right; padding-right:11px; clear:right; } .FP-image-heart { width:91px; height:auto; margin:6px 11px 11px 21px; } .fake_float { float:right; width:0px; height:41px; } </style> </head> <body> <div class="widget_container LP-TextBoxes"> <h2>Lorem ipsum dolor si</h2> <div class="fake_float"></div> <div class="FP-image FP-image-heart"> <img src="https://www.java2s.com/style/demo/Google-Chrome.png" alt="Liebe"> </div> <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. Phasel<strong>Lorem ipsum dolor</strong>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 ph<strong>Lorem ipsum dolor</strong>Lorem ipsum dolo</p> </div> </body> </html>