TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 26, 2024, 01:00:20 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,280
  • Total Topics: 21,227
  • Online today: 203
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 183
  • Total: 183

Alignment

Started by binkles, April 21, 2007, 10:01:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

binkles

How can i line up the sections in the 1st pic like in the 2nd to make it look neater?








Zetan

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.

terryk

#2
You can also play with center blocks.
Three subtle different looks.

  • An empty center block with no title with "use frame from theme".
  • an empty center block with a title but "use frame, but not title"
  • an empty center block with an appropriate title for your site "use frame from theme"

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

IchBin

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. :)

terryk

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

Nokonium

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:

binkles

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, but as it seems this would involve modifying all the theme templates then that could get messy. :o

You guys are great!!   O0