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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 1438
    
    1
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: 1438
    
    1
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: 1438
    
    1
Eric Pascarello wrote:add a whitespace

Eric


Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Table in DIV not Displaying Vertical Scroll Bar