TinyPortal

Development => Support => Topic started by: houston on November 05, 2005, 05:44:23 PM

Title: Reducing height of blocks
Post by: houston on November 05, 2005, 05:44:23 PM
Hi There.

Well this is my first newbie ? of the day. Is it possible to reduce the height of the blocks. I would like to have everything as symmetrical as possible and would like the blocks on the left panel and the blocks on the right panel to be aligned as close as possible. Would this be possible in anyway?

Thanks
Title: Re: Reducing height of blocks
Post by: IchBin on November 05, 2005, 05:57:16 PM
That would seem to be quite a bit of work. Some Blocks are called from the TPortalBlocks.template.php file, and some are called just from the database (the ones you make as php type etc.).
I'm not the smartest PHP/HTML guy, but I think you would have to specify the height in TPortalBlock file, and then specify the height in your custom blocks.
Title: Re: Reducing height of blocks
Post by: bloc on November 05, 2005, 06:14:21 PM
A good deal of work yes. Blocks are by nature varying in height, so you would have to set up a table with set height of cells to accomplish this. Some cells will then have redundant space in them, and some will have a scrollbar because of the content.
Title: Re: Reducing height of blocks
Post by: houston on November 05, 2005, 06:16:31 PM
Quote from: IchBinÃ,â,,¢ on November 05, 2005, 05:57:16 PM
That would seem to be quite a bit of work. Some Blocks are called from the TPortalBlocks.template.php file, and some are called just from the database (the ones you make as php type etc.).
I'm not the smartest PHP/HTML guy, but I think you would have to specify the height in TPortalBlock file, and then specify the height in your custom blocks.

The one block that I have in mind is the theme picker block. It's hieght seems to be a bit higher than needed. I took a quick look in the TPortalBlocks.template.php file. Maybe I will go back to it and take a closer look. Thanks for you insight.