This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > October 2005 > setting height automatically





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author setting height automatically
Ridge Burner

2005-10-10, 6:35 pm

I have a 3 column table with the main content of the page in the center
column, pretty basic. I have a DIV in the right column that holds links, and
which is nearly always taller than the content cell, and I want to make it
never be any taller/shorter than the main content area. I can use
overflow:hidden, but I need to specify the height to do that, and then I am
back to square one. I just need to make sure that the right column never
exceeds the height of the center column, nor is ever any shorter and does
not have scrollbars. What is the best way to get this done? As a note, there
are 3 DIVs in the right column, but only one needs to adjust its height
accordingly.

--Ridge


Spartanicus

2005-10-11, 6:37 pm

"Ridge Burner" <nospam@nospam.com> wrote:

>I have a 3 column table with the main content of the page in the center
>column


Tables are for marking up tabular content, not for creating layouts.

>, pretty basic. I have a DIV in the right column that holds links, and
>which is nearly always taller than the content cell, and I want to make it
>never be any taller/shorter than the main content area. I can use
>overflow:hidden, but I need to specify the height to do that, and then I am
>back to square one. I just need to make sure that the right column never
>exceeds the height of the center column, nor is ever any shorter and does
>not have scrollbars.


If it's ok that these links might be hidden from the user's view then
they are redundant.

>What is the best way to get this done?


Reduce the number of links to an acceptable level.

--
Spartanicus
Ridge Burner

2005-10-11, 6:37 pm


"Spartanicus" <invalid@invalid.invalid> wrote in message
news:humnk11sm0jfg3ioqqldfr5eveilcgbo2j@news.spartanicus.utvinternet.ie...
> "Ridge Burner" <nospam@nospam.com> wrote:
>
>
> Tables are for marking up tabular content, not for creating layouts.
>
>
> If it's ok that these links might be hidden from the user's view then
> they are redundant.
>
>
> Reduce the number of links to an acceptable level.
>
> --
> Spartanicus


Thanks Spartanicus, but I don't have the luxury of modifying the length of
the link list. This list is a PHP include file which spans 8 sites. Each
site is unique and requires the list to display at different lengths. I
could make the list unique for each site, but then I would need 9 different
include files (add one for the admin) and each would have to be edited
seperately. What you suggest is doable, but not practical in the situation I
am in.

--Ridge


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews