TinyPortal

Development => Support => Topic started by: ed_m2 on December 03, 2008, 10:10:23 PM

Title: tp_leftpanel height setting
Post by: ed_m2 on December 03, 2008, 10:10:23 PM
hi peeps...

a panel/block structure and/or css question.

i'd like all the blocks in the leftpanel to be on a particular coloured background, including the padding between blocks etc..  this looks like being the tp_leftpanel style.

by default this seems to be only as high as the number of blocks within the container.

ideally i'd like the tp_leftpanel to extend as far down as it can, down to the bottom of the <td> it's in, so the leftpanel is as high as whatever content is being displayed in the main section.

i've tried:
tp_leftpanel { height: 100%; }

to no avail.... tp_leftpanel seems to be within another div with an id=tpleftbarHeader which i've also attempted to make 100%.

this is all based on default theme.

any suggestions welcome  :coolsmiley:
Title: Re: tp_leftpanel height setting
Post by: IchBin on December 03, 2008, 11:49:20 PM
Sigh.... I can only assume you're using TP 1.x ? In the TPBlocksLayout.template.php file search for the leftbar code. You'll notcie the column is in a <td>. You'll need to add the background color to that <td>
Title: Re: tp_leftpanel height setting
Post by: ed_m2 on December 04, 2008, 08:26:14 AM
sigh... sorry i had good intentions of putting version info in right up to the last minute :-)

ok, thanks i'll consider doing that then, might give the td its own class to avoid repeated tinkering.
i'd have thought i could force the divs to fill the td in some way.
Title: Re: tp_leftpanel height setting
Post by: IchBin on December 04, 2008, 02:15:00 PM
You can only assign a div a height of 100% if the parent objects are assigned a height of 100% as well. You'd be changing more code to get that to work than you'd care for. :) Doing it on the TD is the easiest solution.
Title: Re: tp_leftpanel height setting
Post by: ed_m2 on December 04, 2008, 02:56:23 PM
done and done tah, using a style class in the td.

i have some guinea pigs trying the site out at the moment, should be live before crimbo.