If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Weird DIV problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-15-04, 10:52
paulbrooks paulbrooks is offline
Registered User
 
Join Date: Feb 2004
Location: UK
Posts: 23
Weird DIV problem

Hi,

I'm trying to display database results in a HTML table within a DIV box, which is displayed inline within a table cell.

If I put just four or five rows of results in the table, it is fine and the DIV displays a scrollbar if necessary.

However, if I display more than that, a mystery gap appears above the DIV and it moves further down the page for each row I add.

Any ideas why this is happening?


Paul
Reply With Quote
  #2 (permalink)  
Old 06-15-04, 20:46
MrWizard MrWizard is offline
Registered User
 
Join Date: Mar 2003
Location: Atlanta, GA
Posts: 191
How about posting some code, so we can see what you're doing!
__________________
Tim
Reply With Quote
  #3 (permalink)  
Old 06-16-04, 04:36
paulbrooks paulbrooks is offline
Registered User
 
Join Date: Feb 2004
Location: UK
Posts: 23
Here is a shortened version of the HTML around the DIV:

Code:
<td valign="top"><div style="border:1px solid red; width:90%; height:180; overflow:auto" valign="top">
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="panelText" style="padding-top:8px"><b>Title</b></td></tr>
</table>
</div></td>
This example only has one row in the table and will display fine, but once I have 10 or more rows, it causes a problem.

The browser displays it with a gap between the top of the TD cell and the top of the red border. If I drag my mouse across the page to highlight the DIV, it actually covers the whole of the cell, but the border and contents start further down.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On