Place an image to the right of associated text - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text

Description

Place an image to the right of associated text

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.ucsc_image_dynamic_size {<!--   w  w  w  . j a  v a  2 s. c om-->
   float:right;
   margin:0 0 0.6em 2em;
}
</style> 
 </head> 
 <body> 
  <div> 
   <img class="ucsc_image_dynamic_size" alt="Access Connexxus Booking Tool" src="https://www.java2s.com/style/demo/Google-Chrome.png">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, orna 
   <a href="bla.com" target="_blank">Lorem ipsum dolor sit amet,</a>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed ferme 
  </div>  
 </body>
</html>

Related Tutorials