Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - div layers

 
Thread Tools Search this Thread
Old 07-18-2006, 05:41 PM   #1
Default div layers


Hi
I have a typical web design question.
I built a website out of div layers.

basically there are three columns:
MainLeft, MainCenter, MainRight

MainCenter contains Content out of Text and Images,
MainLeft and Main Right contain navigation elements on a grey colored
area,

The problem is:

If the content height is bigger than the minimum height, these grey
colored areas on the left and right are to short and don't range to the
bottom of the page........

all of the layers have:

min-height:640px;
height:auto;
(and the layer that ist parent of all three has height:auto as well)

How can I archieve that layers MainLeft and MainRight are dependent on
the MainCenter height and all the div layers adjust to the length of
the content?

Is it possible with layers or will I hav to do it with tables?

any comment would be aprechiated.

Dennis



d.schulz81@gmx.net
  Reply With Quote
Old 07-19-2006, 11:20 AM   #2
Neredbojias
 
Posts: n/a
Default Re: div layers

To further the education of mankind, vouchsafed:

> Hi
> I have a typical web design question.
> I built a website out of div layers.
>
> basically there are three columns:
> MainLeft, MainCenter, MainRight
>
> MainCenter contains Content out of Text and Images,
> MainLeft and Main Right contain navigation elements on a grey colored
> area,
>
> The problem is:
>
> If the content height is bigger than the minimum height, these grey
> colored areas on the left and right are to short and don't range to the
> bottom of the page........
>
> all of the layers have:
>
> min-height:640px;
> height:auto;
> (and the layer that ist parent of all three has height:auto as well)
>
> How can I archieve that layers MainLeft and MainRight are dependent on
> the MainCenter height and all the div layers adjust to the length of
> the content?
>
> Is it possible with layers or will I hav to do it with tables?


You could try enclosing all divs in a relative-positioned outer div and set
left and right div heights to 100%.

--
Neredbojias
Infinity has its limits.
  Reply With Quote
Old 07-19-2006, 01:16 PM   #3
bizshop
 
Posts: n/a
Default Re: div layers

Take a look at the source for
http://www.pixy.cz/blogg/clanky/css-3col-layout/ as one solution.
Another is at http://www.pmob.co.uk/temp/3colfixedtest_2.htm




wrote:
> Hi
> I have a typical web design question.
> I built a website out of div layers.
>
> basically there are three columns:
> MainLeft, MainCenter, MainRight
>
> MainCenter contains Content out of Text and Images,
> MainLeft and Main Right contain navigation elements on a grey colored
> area,
>
> The problem is:
>
> If the content height is bigger than the minimum height, these grey
> colored areas on the left and right are to short and don't range to the
> bottom of the page........
>
> all of the layers have:
>
> min-height:640px;
> height:auto;
> (and the layer that ist parent of all three has height:auto as well)
>
> How can I archieve that layers MainLeft and MainRight are dependent on
> the MainCenter height and all the div layers adjust to the length of
> the content?
>
> Is it possible with layers or will I hav to do it with tables?
>
> any comment would be aprechiated.
>
> Dennis


  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump