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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,224
  • Total Topics: 21,352
  • Online today: 633
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 159
  • Total: 160
  • @rjen

Horizontal padding

Started by fugi, October 07, 2005, 07:00:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fugi

In the TP admin settings u can only set the vertical padding.
It would be useful if u could do the same for the horizontal one.
What I wanna do is to eliminate h.p. to zero so as to create the illusion of one single frame with links.

bloc

How about just changing the template? if its one-off occasion, its better..thats what templateas are for really.

fugi


bloc

Index.template.php..just before and after "function tempalte_main_below()". Look for paddings there in the td's for "leftbar" and "rightbar".

fugi

Quote from: fugi on October 07, 2005, 07:00:44 PM
What I wanna do is to eliminate h.p. to zero so as to create the illusion of one single frame with links.

Quote from: Bloc on October 08, 2005, 12:31:52 PM
Index.template.php..just before and after "function tempalte_main_below()". Look for paddings there in the td's for "leftbar" and "rightbar".
I've changed many many parameters/arguments but I can't find the correct one (for horizontal padding).
Could u plz quote me the code-line?

Thnx 1,000 in advance

IchBin


Xarcell

#6

padding: 5px; or paddding-left: 5px; or padding-right: 5px;


Add that to the leftbar/right bar TP code inside the style tag:

example:


// 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; paddding-left: 5px; padding-right: 5px;" valign="top">
                 <div id="leftbarHeader"', empty($options['collapse_leftbar']) ? '' : ' style="display: none;"', ' style="padding-top: 5px; paddding-left: 5px; padding-right: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
                 TPortal_sidebar('left');
              echo '</div></td>';

          }


However, I don't think that's what your really asking is it? If you want to add "space" between your left/right blocks and your center block or from the left/right edges of the forum, then add "margin".


margin: 5px;



Example of my TP leftbar code (7px) to move it away from the left edge look for "margin-left: 7px;"

// 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;" valign="top">
                 <div id="leftbarHeader"', empty($options['collapse_leftbar']) ? '' : ' style="display: none;"', ' style="padding-top: 5px; margin-left: 7px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
                 TPortal_sidebar('left');
              echo '</div></td>';

          }


You would need to do this on both left/right bars.

Hope I didn't confuse you.

More on margins/padding:

http://lissaexplains.com/css.shtml

-Xarcell

fugi

#7
I don't want to add space on the contrary I want to anihilate space-to make all left or right blocks become one.
I use the SMFone blue sky theme (with the modified template I uploaded here before some days)

Thnx both

This website is proudly hosted on Crocweb Cloud Website Hosting.