Table beside a floating image - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Layout

Description

Table beside a floating image

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">
h1 {<!--from   w  w  w  .  j  a  v a 2 s . c o m-->
   font-size:2em;
}

img
 {
   float:left;
}

.content
 {
   margin-left:96px;
}

.field {
   width:100%
}
</style> 
 </head> 
 <body> 
  <img src="https://www.java2s.com/style/demo/Firefox.png" width="95" height="84"> 
  <div class="content"> 
   <h1>Lorem ipsum dolor</h1> 
   <form> 
    <table width="100%"> 
     <tbody> 
      <tr> 
       <td> <input type="text" class="field"> </td> 
      </tr> 
     </tbody> 
    </table> 
   </form> 
  </div>  
 </body>
</html>

Related Tutorials