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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 488
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 89
  • Total: 89

Side block not aligning properly

Started by Mayhem30, July 14, 2007, 04:31:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mayhem30

Is there a way to align the left and right side blocks?

If I don't use a center piece, they stick up higher that my top board and looks out of place.

IchBin


Mayhem30

I'm using smf 1.1.3 with default theme

The blocks on the sides stick about 20px higher that my top baord.

How would I adjust that?

INR

#3
I found a quick way to adjust the columns to your setup.

Go to index.template.php.

Find around line 400

Quote// TinyPortal integrated bars
          if($context['TPortal']['leftbar'])
          {
              echo '<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
                 <div id="leftbarHeader"', empty($options['collapse_leftbar']) ? '' : ' style="display: none;"', ' style="padding-top: 37px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
                 TPortal_sidebar('left');
              echo '</div></td>';


Just change that number until your have what you need. There is similar code for the right column a few lines of code further down.

G


This website is proudly hosted on Crocweb Cloud Website Hosting.