TinyPortal

Development => Support => Topic started by: Rav33n on January 31, 2009, 06:05:10 AM

Title: Individual block width
Post by: Rav33n on January 31, 2009, 06:05:10 AM
Link to my site: http://falsus.gamer.lk/forum/
SMF version: SMF ver. 1.1.7
TP version: TP v.1.0.6 beta 2
Theme name and version: Corporate America
Mods installed: None
Related Error messages: None

I need to set individual block widths to blocks on the front panel.

eg - I have two blocks side by side using the 2 column layout for the panel. I need block 1 to be 500px and block 2 to take the rest of the page width.

I tried achieving this using one block and having a table with two TD's, but each section needs a different kind of block (script and php) so it won't work that way unfortunately.

Any suggestions?
Title: Re: Individual block width
Post by: G6Cad on January 31, 2009, 08:51:48 AM
Yes, wait for next beta that have individual block width and also hight implemented
Title: Re: Individual block width
Post by: ardmhacha on October 06, 2009, 02:00:28 PM
Link to my site: http://www.orchardcounty.com
SMF version: SMF ver. 1.1.10
TP version: TP v.1.0.6 beta 3

I would like to set individual block widths to blocks on the front panel as Rav33n suggested. Was this implemented in v.1.0.6 beta 3, as its not obvious to me. I can set width in panels but it applies to both blocks. I want the left block to be 400px and the other 100%, filling the remaining space.

Forgive me if I'm missing something
Title: Re: Individual block width
Post by: IchBin on October 06, 2009, 03:01:14 PM
You can't force the width on individual blocks. It can only be done with all blocks. I don't think it was ever intended to be a per block setting. You can force the height or width of all blocks in a panel, just not separately.
Title: Re: Individual block width
Post by: G6Cad on October 06, 2009, 03:11:00 PM
If you use a grid layout for top, bottom upper and lower panels you can set the hight for blocks and they will show % of the width separated by how many blocks you have.

2 blcoks will be 50% 3 blocks will be 33.3%
Title: Re: Individual block width
Post by: IchBin on October 06, 2009, 03:30:00 PM
But that still doesn't allow you to set one block 40% and the other block 60%. Isn't that what is being asked?
Title: Re: Individual block width
Post by: Freddy on October 06, 2009, 03:46:12 PM
What if you use a PHP block for all of it and echo out the script part ?  You could split it up using tables or DIVs..
Title: Re: Individual block width
Post by: G6Cad on October 06, 2009, 03:57:41 PM
Quote from: IchBinâ„¢ on October 06, 2009, 03:30:00 PM
But that still doesn't allow you to set one block 40% and the other block 60%. Isn't that what is being asked?

Yes, but thats why i said it will divide in % depending on how many blocks there are in the grid