Lars-Christian
01-30-2005, 08:45 PM
Alright, I have just finished up a grunge design (my first, yay for me) for my portfolio, but now I need to properly code it, so I have some quick questions.
Is it possible to set a specific table cell to scroll, instead of the entire site? http://www.zeldauniverse.net/div/portfolio/grunge/ <- Take a look, and you'll prolly understand what I mean. I want the scrolling part to be where the content is, instead of the site.
Well that's about it I think ;)
the_pm
01-30-2005, 09:34 PM
Sort of. You can place a <div> inside that table cell and set it's overflow property to auto or scroll. That will allow you to make one little section scrolly without resorting to something disasterous like iframes.
I don't believe you're allowed to use this element on the <td> itself (limited browser support would be the result), which is why I suggest placing a container inside the <td> first. But check closer, and maybe you'll find using this on the <td> is ok, in which, case, there's your answer.
overflow:auto or overflow:scroll in your style sheet.
Lars-Christian
01-30-2005, 10:59 PM
Thanks, I knew you'd come to my rescue on this one ;) I'm gonna go try it out now!
Lars-Christian
01-30-2005, 11:23 PM
Gah, stupid 15 minutes edit limit, but just wanted to let you know that with the div container, it worked fine ;)
http://www.zeldauniverse.net/div/portfolio/grunge/
If you want to see the result (of course I haven't edited the look of the scroll bar yet).
the_pm
01-30-2005, 11:29 PM
Cool. Glad that worked for ya :)
Lars-Christian
01-30-2005, 11:37 PM
Oh yeah, now for a different question;
How do you change the scrollbar colours? I used this in the past:
body
{
background: #986E34;
scrollbar-track-color: #79501A;
scrollbar-darkshadow-color: #79501A;
scrollbar-face-color: #79501A;
scrollbar-shadow-color: #79501A;
scrollbar-3dlight-color: #79501A;
scrollbar-highlight-color: #79501A;
scrollbar-arrow-color: #79501A;
}
In the body tag, obviously - But only IE (and not FireFox) seems to recognize that. Did I miss something here?
It's been a loong time since I bothered messing around with the colours of the scroll bar :P
EDIT: Screw it, I'll use one of those fancy DHTML scripts. Will probably look better either way.