Tuesday, March 13, 2012

Simple Html??

Not sure what to do here, but it comes down to this.

Have a table with 2 cells(1 row, 2 colums)
both are populated with stuff from the code behind (more tables, rows, cells, etc).

first put a lot of stuff in the first cell, which of course cause the table's height to increase.

then put stuff into cell b, but whatever happen, it may not cause the table's height to increase more than it allready is (a scroll bar..allready taken care of will allow the user to go up and down in this cell if necessray).You've already put the scrollbar in or you want to know how to do it
the scrollbar works fine by using this:
<div class="container" id="divParts" style="OVERFLOW: auto"><asp:table id="tblPartScroller" Runat="server" Width="120" CellPadding="0" CellSpacing="0">
basically jsut want to make sure this table (inside the second cell) never go bigger than the first, but rather go into scrolling
It may not, you should actually specify a height for that div along with the overflow:auto; style that you've used. So, in cell2, place a div with the overflow:auto set, and inside that, the table with stuff in it. Give it an average height if you have to, that would help a lot. Say, 600px;?

0 comments:

Post a Comment