File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Table in DIV not Displaying Vertical Scroll Bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Table in DIV not Displaying Vertical Scroll Bar" Watch "Table in DIV not Displaying Vertical Scroll Bar" New topic
Author

Table in DIV not Displaying Vertical Scroll Bar

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1390
I have a DIV with overflow: auto called out in the CSS. The DIV displays a JSP using jQuery.load. The JSP has a table, listing several remote data records. The table is displaying with a horizontal scroll bar but it does not have the vertical scroll bar. The table is scrunching veritically.

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Did you set a height to the div? You may need to set one to the table or rows/cells

Eric
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1390
Eric Pascarello wrote:Did you set a height to the div? You may need to set one to the table or rows/cells

Eric


Okay, that fixed it, thanks.

One more question on this table. When the cell is empty the borders disappear making the table sort of ugly. How can this be fixed?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
add a whitespace

Eric
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1390
Eric Pascarello wrote:add a whitespace

Eric


Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Table in DIV not Displaying Vertical Scroll Bar
 
Similar Threads
Table with Scrollbar
Problem with DIV
need to add scroll bar to table ( with sashform)
display tag regarding
Unable to add vertical scrollbar to SWT table