Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 11: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, 21: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, 05: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

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