aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Problem using divs. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem using divs." Watch "Problem using divs." New topic
Author

Problem using divs.

Darrin Smith
Ranch Hand

Joined: Aug 04, 2003
Posts: 276
I have a page that has an area that I would like to make scrollable while the rest of the page stays put.

I was told that it was easy to do using "scrolling divs". Well, I googled for this and found an example, but when I run the app nothing even similar to what I exepected (an area with scroll bars) gets displayed. What I see is the exact page as it was before but with a square box in the background.

Here is a snippet of the code:



What is it that I am doing wrong? Is it that the components have static position values?

Thanks.
[ June 07, 2005: Message edited by: Darrin Smith ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
can you do me a favor and do a view source on the page and give me that code instead....
Darrin Smith
Ranch Hand

Joined: Aug 04, 2003
Posts: 276

[ June 07, 2005: Message edited by: Darrin Smith ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Remove the asolute positioning from the tables along with their top and left positions and that should get you started.

I avoid abs. positioning at all costs!

Eric
 
Don't get me started about those stupid light bulbs.
 
subject: Problem using divs.