This is a discussion on "3 column div layout, not same length" within the Web Page Design section. This forum, and the thread "3 column div layout, not same length are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
3 column div layout, not same length
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
3 column div layout, not same length
I have 3 divs which are side by side, making 3 columns. The middle column contains the content, which obviously is a different height depending on how much text is in it...and the left and right columns each have a different background image to accomodate for a different content height, if the content div should become bigger than the left and right divs. However, when the content div grows, the left and right divs do not grow with it, which leaves a blank space under them. How do I make it so that all three divs grow with each other?
http://www.solsurfer.com/alienindex.html |
|
|
|
|||
|
Re: 3 column div layout, not same length
Easy one! You need Faux Columns. http://www.ilovejackdaniels.com/css/...iquid-layouts/
|
|
|||
|
Re: 3 column div layout, not same length
That would work great except for one problem. I don't want to make the body background repeat - I want it for a specific div. I am trying to use the "faux column" method by having the 3 divs within a container div. The container div would use the repeating background image. I can't get it to work though. Here is the snippet of code I am using:
CSS:
|
|
|||
|
Re: 3 column div layout, not same length
I think I would do something like this.
css
|
|
|||
|
Re: 3 column div layout, not same length
I was thinking of doing that, but the problem is that there are images (not bg images) that need to go on the left and right of the content. These images are vertical gradients that go from lime green to black. When the image stops, so does the gradient, so there is just a blank space from the end of it to the bottom of the div, which is why I want to have a solid black background image behind it, so that it can pick up where the gradient stops and continue to the bottom of the div.
Thanks for helping me brainstorm on this one - its really complicated This would be so easy using tables... |
|
|||
|
Re: 3 column div layout, not same length
I just decided to use your suggestion and make it one big div with a long bg image. The image is 1000px long lol in case the page gets long.
Thanks for your help. |
|
|||
|
Re: 3 column div layout, not same length
I'm sure there might be a different way, but I think that might be your best bet at this time.
I tend to make my left and right sides of a graphic design simple straight lines or no lines or a curve that is easy to repeat. Then I never get stuck with the restriction you are facing. But in this design which is really nice, it's worth a bit of a struggle. Yes tables would be easier no doubt about that... sigh... but you will have the true joy of knowing you did it RIGHT! You can walk proud like a peacock and saying "My site rocks"! |
|
|||
|
Re: 3 column div layout, not same length
Yeah I am already proud of myself. I'm glad I went with divs and not tables this time. Now i just have to figure out why IE doesn't display it correctly.
|
|
||||
|
Re: 3 column div layout, not same length
Because IE is the red headed step child of the intar web screenie.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| css |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| where can I find a fluid 3 column layout | Gerry | Web Page Design | 7 | Nov 2nd, 2007 22:48 |
| 3 column layout help needed | AdRock | Web Page Design | 12 | Apr 13th, 2007 23:40 |
| 3 column layout to 2 column layout | snappy | Web Page Design | 2 | Oct 29th, 2006 16:29 |
| Column display, layout differences | deesto | Web Page Design | 2 | Sep 3rd, 2006 20:27 |
| perfect three column layout | Webforumz Staff | Web Page Design | 15 | Apr 14th, 2004 08:56 |