aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Strange problem: space between two div's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Strange problem: space between two div Watch "Strange problem: space between two div New topic
Author

Strange problem: space between two div's

Arvind Anandala
Greenhorn

Joined: Nov 24, 2011
Posts: 1
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'>


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Strange problem: space between two div's