• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Strange problem: space between two div's

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have div's vertical aligned in jsp, one after the other. The data for the table in the first div will comes from backend as shown below. for less amount of data, which i sent from the backend. it is working fine,such that, i haven't find any spaces between two consecutive divs.if i send, more data from backend, i got spaces between two div's which is nearly to 3000 px.i.e margin space and they are dependent divs, when clicking in the first div, the second div is visbible then, i tried with attributes margin-bottom by cheating -3000 px, but in the long run if they send less data, then the second div, will not appear, i tried with postion:relative, can, any one suggest, what is the problem which leads to error.


<div style='BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 1px; OVERFLOW-X: scroll; OVERFLOW-Y: scroll; PADDING-LEFT: 0px; Z-INDEX: 2; PADDING-BOTTOM: 0px; HEIGHT: 170px; WIDTH: 1000px; PADDING-TOP: 1px;vertical-align:text-top;top:200px'>

<table>
<tr><td></td></tr>
while(crsGetData.next())
<td></td>
</table>
</div>

<div style='BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 1px; OVERFLOW-X: scroll; OVERFLOW-Y: scroll; PADDING-LEFT: 0px; Z-INDEX: 2; PADDING-BOTTOM: 0px; HEIGHT: 170px; WIDTH: 1000px; PADDING-TOP: 1px; vertical-align:text-top; top:200px'>


 
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic