Putting a scrollable div into table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Table

Description

Putting a scrollable div into table

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--   w  ww  .j  a va2s.  co m-->
 <body> 
  <table width="100%" style="table-layout:fixed;"> 
   <tbody> 
    <tr> 
     <td style="background-color: red"> </td> 
     <td style="background-color: blue;"> 
      <div style="width: 40%;overflow: auto;"> 
       <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> 
      </div> </td> 
     <td style="width: 400px;background-color: orange"> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials