Thread: sizeable <div>
View Single Post
  #1 (permalink)  
Old December 8th, 2004, 04:28 PM
johnjohn johnjohn is offline
Authorized User
 
Join Date: Nov 2004
Location: , , .
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default sizeable <div>

Hi everybody,

I'm doing a webpage where I have to put a huge amount of data in a table.I want to always keep showing the top menu. So what I do is a "little scrollable windows" for the data. The problem is that I want the page to don't have a scrollbar but expand as much as I can my data windows with its own scrollbar.

So here is my code to make my scrollable windows for my data



<style type="text/css">
    <!--
    div.scroll
    {
        height: 600px;
        width: 100%;
        overflow: auto;
        border: 1px solid #666;
        background-color: #ccc;
        padding: 1px;
    }
    -->
</style>


But the problem is that I can't choose a percentage for the height so is there a way to retrieve the windows size and adjust the data windows from there??


Thank you very much

Reply With Quote