Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Scroll bar in Table Cell

Scroll bar in Table Cell
Thread Tools
Mac Enthusiast
Join Date: Jul 2003
Status: Offline
Reply With Quote
Dec 19, 2005, 09:19 AM
 
I confess in advance that I am using tables to help me with my layout. I have read a little on how to make a cell have a scroll bar- so that one cell can stay stationary with navigation, and the center cell can scroll. It does not seem too difficult. That said, each browser hands it a little differently.

What's strange to me is that in Safari, some of my pages seem to work perfectly, and others have a large blank space at the bottom of the cell with the scroll bar.

Does anyone mind looking at two examples: one that works well, and one that does not (it has too much blank space at the bottom).

The method used is identical, but the results are different in these two documents- can't quite figure it out. Thanks!
     
Posting Junkie
Join Date: May 2001
Location: Brisbane, Australia
Status: Offline
Reply With Quote
Dec 19, 2005, 08:34 PM
 
I beg you please not to implement any of these examples, they are ugly and they break with human interface guidelines as well as common sense. Please!

[ fb ] [ flickr ] [] [scl] [ last ] [ plaxo ]
     
Mac Elite
Join Date: Jan 2003
Location: San Diego
Status: Offline
Reply With Quote
Dec 19, 2005, 09:26 PM
 
Originally Posted by surferboy
one that works well, and one that does not
I would have to agree that neither design "works well". Keep in mind that very few people using your site will have 1200px high browser windows. If it's absolutely necessary to have a scrollable table cell, I would keep the div hight no higher than about 600px.
     
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Dec 19, 2005, 10:00 PM
 
Do it yourself surgery?
     
Mac Enthusiast
Join Date: Jul 2003
Status: Offline
Reply With Quote
Dec 19, 2005, 10:27 PM
 
I picked 1200 px simply because that seemed to roughly match the navigation on the left reasonably well. As soon as you hit the bottom of the navigation on the left, then the middle of the screen starts scrolling.

From the content of the examples, and the horrible code- you might have figured out that web developing is not my day job. I appreciate the constructive criticism, but I still don't have an answer as to why the browser handles one "normally" and the other "abnormally".
     
Mac Enthusiast
Join Date: Jul 2003
Status: Offline
Reply With Quote
Dec 19, 2005, 10:31 PM
 
Also, scrollable table cells are not a must- it seemed to be a way to make the navigation on the left relatively constant while allowing a viewer to scroll through the content.

Again- not my day job, but I think that most of audience for these pages will be able to figure out what's on the page.
     
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Dec 19, 2005, 10:36 PM
 
For me ( 1024 x 728 ), I get two scroll bars, I scroll the left one, then need to scroll the right one to see all the content, which is kind of less than intuitive.

Lose the scroll, works for Yahoo!.

imho
     
Mac Enthusiast
Join Date: Jul 2003
Status: Offline
Reply With Quote
Dec 19, 2005, 10:39 PM
 
Now that's some good advice. I did the whole site without scroll bars, but it occured to me that it would be nice to have left sided navigation visible all the time. Don't want to use frames- and ocassionaly a technical description can get long- winded and I'd rather not break up the pages. But, I think you are right- ditch the scrolls

Everyone agree?
     
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Dec 19, 2005, 10:46 PM
 
Originally Posted by surferboy
ocassionaly a technical description can get long- winded and I'd rather not break up the pages.
Terribly old fashioned, but if the content gets lengthy you could add ^^top^^ tags every once and a while.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Dec 20, 2005, 12:53 AM
 
What's screwing up your layout is the float:left image at the bottom of the div. Because it's so close to the bottom, WebKit is padding it with extra space that's running outside the overflow. I am not an expert of any sort, so I couldn't say for sure that Safari's behavior isn't actually somehow correct, but this looks like a bug in WebKit to me.

And I agree on not having it scroll. The double-scrolling layout is a much bigger pain than having to go back to the top if you want to switch to another part of the site.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Enthusiast
Join Date: Jul 2003
Status: Offline
Reply With Quote
Dec 20, 2005, 06:54 AM
 
That makes good sense. What is Webkit? This was done with DW, but "by hand" within DW. I just started playing with the scrolls to see if it would work. I tend to get obsessed trying to get something "to work" when I run into a problem.

I am satisfied with a good explanation, and will probably ditch the scrolls- I agree it's a little cumbersome.

Thanks for the good advice.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Dec 20, 2005, 02:57 PM
 
WebKit is the framework that Safari (as well as a few other apps) uses to render Web pages.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Moderator
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
Dec 20, 2005, 05:19 PM
 
Originally Posted by skalie
For me ( 1024 x 728 ), I get two scroll bars, I scroll the left one, then need to scroll the right one to see all the content, which is kind of less than intuitive.
Very glad to see the scroll bars are going to be gotten rid of (there’s an awkward construction); just one additional note to skalie’s point:

If I scroll the table cell by double-finger-dragging on my PowerBook trackpad (or, I assume, with a mouse scroll wheel), it scrolls within the table cell, but the main scroll bar also scrolls, except they scroll out of synch and at different speeds. This is just about enough to make me seasick.

[If someone else posted the same while I was typing this, sorry: I started typing this post about two hours ago and just finished now]
     
Mac Enthusiast
Join Date: Jul 2003
Status: Offline
Reply With Quote
Dec 20, 2005, 05:23 PM
 
I agree- the scrolling was suboptimal, but once I noticed that I could make it work on one page and not another- it became a problem solving issue. Like I said, I get obsessed with "solving the problem".

Thanks
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:46 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2