have some text to the right of an image and some under it - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text

Description

have some text to the right of an image and some under it

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">
img {<!--   ww w  .  j a  v a  2s . c  o  m-->
   float:left;
   margin:9px;
}
</style> 
 </head> 
 <body> 
  <img src="https://www.java2s.com/style/demo/Firefox.png" width="25%"> 
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing </p> 
  <p style="clear: both;">Lorem ipsum dolor sit amet, consectetur </p>  
 </body>
</html>

Related Tutorials