TinyPortal

Development => Support => Topic started by: binkles on April 21, 2007, 10:01:30 PM

Title: Alignment
Post by: binkles on April 21, 2007, 10:01:30 PM
How can i line up the sections in the 1st pic like in the 2nd to make it look neater?


(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.helenshedgehogs.koreru.org%2Fcommunity%2Fimages%2Fline_up2.jpg&hash=8ae07bf69253e687630d2469a536ffc461f213f6)


(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.helenshedgehogs.koreru.org%2Fcommunity%2Fimages%2Flinedup.jpg&hash=bcdd5fe3ec6dfe0a11c35eca959b8b7a1e5dedfd)

Title: Re: Alignment
Post by: Zetan on April 21, 2007, 10:57:41 PM
Only suggestion I have is to put what I call a Null block.
I have one either side of my site.. they contain blocks with line breaks, with no border, no collapse.
It will move the blocks down.. you need to include as many line breaks needed to make it almost line up.
The index tree is in the way of the front page blocks.

There is probably a better way to do it, if somebody knows one... I'm interested  in doing the same.
Title: Re: Alignment
Post by: terryk on April 22, 2007, 12:20:33 AM
You can also play with center blocks.
Three subtle different looks.

A bit more effort is the following two step process.
Disable the link tree in SMF
Use a center php block with the code theme_linktree();
The link tree will now show within the tp block and the top border will align with your side blocks.

terry
Title: Re: Alignment
Post by: IchBin on April 22, 2007, 12:23:46 AM
Without using the work arounds that these guys are giving you, you'll need to manually edit the code in the index.template.php file to move the theme_linktree above the table for the forum. So it all depends on which one you wanna try first. :)
Title: Re: Alignment
Post by: terryk on April 22, 2007, 12:44:12 AM
In general terms, I don't trust myself yet to do too much editing of default php files.

But, using IchBin's pointer to the index.template.php file it is rather easy to search within the file for linktree and remove the margin-top: 2ex; setting.

Linktree now aligns with side blocks pretty well and might satisfy the original poster's need.

thanks IchBin
terry
Title: Re: Alignment
Post by: Nokonium on April 22, 2007, 06:33:16 AM
I looked at that a while back, I added a border and background to it in the index.template. Then I found out how many times the linktree is called by other templates ....  :buck2:
Title: Re: Alignment
Post by: binkles on April 22, 2007, 09:10:47 AM
Thanks guys, i thiink i will go with the adding empty blocks, i am happy to play around woith the code as i can run my setup offline, locally on my PC using this,
http://www.tinyportal.net/index.php?topic=14801.msg123154#msg123154 (http://www.tinyportal.net/index.php?topic=14801.msg123154#msg123154), but as it seems this would involve modifying all the theme templates then that could get messy. :o

You guys are great!!   O0