Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3 column layout with a scrolling center div
05-12-2008, 12:55 PM
Post: #1
3 column layout with a scrolling center div
Morning Monkeys Smile

I've been looking into something that I have been aske to implement on my companies website which is a three column layout (which i have done) but they want it so that the center div only scrolls while the header, footer and left and right divs stay static in the same way that this site does it (http://www.theconsult.com/latestnews.html).

I've been looking into how I would do this and have also tried a couple ideas which I thought would work but so far I'm not even close, does anyone know how this is done?

TIA folks
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
05-12-2008, 05:59 PM
Post: #2
 
<div style="width:500px;height:600px;overflow:auto">
Text
</div>

also try overflow: scroll;

Bomberman
aka Colin Smith
http://www.smithcolin.co.uk
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
05-12-2008, 06:01 PM
Post: #3
 
ah, i see the link. dunno how to do that particular one. I suppose you could make the top right and left divs absolute but not sure.

If you find a solution be sure to let us know!

Bomberman
aka Colin Smith
http://www.smithcolin.co.uk
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
06-12-2008, 12:26 PM
Post: #4
 
lol I was about to say that I'd tried using hte overflow properties with no success,

dont worry if i do find out I will be sure to let you all know, I'm half tempted to try emailing the developers of the site.
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
08-12-2008, 11:48 AM
Post: #5
 
okay I've sussed it (with the help of firebug) below is an example of what to do:

Code:
div#col01 is defined like this:
#col01 {
  left:32px;
  position:fixed;
  top:29px;
  width:205px;
}
div#col02 just has a width
div#col03 is defined just like col01 but pushed further right:
#col03 {
  left:751px;
  position:fixed;
  top:29px;
  width:205px;
}
I'm still playing around with this to get the header and footer right but this is the basic idea behind it Smile

My portfolio website
My blog
Send this user an email Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: