Fresh features... |
Scrollboxes
Scrollboxes & Tables
<div style="width: 100px; height: 100px; overflow: auto; border: 1px solid red;"> contents here </div> Nb, with overflow auto the scroll arrows won't appear until the contents is bigger than the box-
To make scrollboxes appear side by side, as in the example above, the code is: <table><tr><td> <div style="width: 100px; height: 100px; overflow: auto; border: 1px solid red;"> box 1 content </div> </td><td> <div style="width: 100px; height: 100px; overflow: auto; border: 1px solid red;"> box 2 content </div> </td></tr></table>
To make a box where the content changes when you click on the links, the code is: <style type="text/css"> .container { width: 250px; height: 200px; overflow: auto; overflow-y: hidden; border: 3px double #999999; } .section { height: 200px; overflow: auto; } </style> <table width="350px"><tr><td> <div style="overflow: auto; width: 100px; height: 200px; border: 3px double #999999;"> NAVIGATION <br><a href="#profile">[ About Bit ]</a> <br><a href="#likes">[ Likes ]</a> <br><a href="#loathes">[ Loathes ]</a> <br><a href="#music">[ Music ]</a> </div> </td><td> <div class="container"> <a name="profile"></a> <div class="section"> <br><br>ABOUT TEXT GOES HERE </div> <a name="likes"></a> <div class="section"> <br><br>LIKES TEXT GOES HERE </div> <a name="loathes"></a> <div class="section"> <br><br>LOATHES TEXT GOES HERE </div> <a name="music"></a> <div class="section"> <br><br>MUSIC TEXT GOES HERE </div> </div> </td></tr></table>
Optional Attributes DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
|
Follow the Owner for latest tweets about the site and updates |