Vertical scrollbar for a column with unknown height - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

Vertical scrollbar for a column with unknown height

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style type="text/css">

#example{<!--from ww  w . ja v a 2 s  .  co  m-->
   overflow: scroll;
   height: 200px;
   width: 100px;
   border: 1px solid red;
   color: #FFF;
   background-color: #000;
}


      </style> 
 </head> 
 <body> 
  <div id="example">
    Hello, World! 
  </div>  
 </body>
</html>

Related Tutorials