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: 103
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 242
  • Total: 242

Side bar sizing question

Started by Crip, May 26, 2005, 07:00:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Crip

If this topic was already covered I appologize but I couldn't locate anything through search.

The problem I'm having is with hiding the side bar when viewing the forum. It collapses more than when you use the collapse button. This causes the forum to look shifted to one side. Any ideas?
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Bjørn

Which theme are you using? I know some of them have these problems...

Crip

SMF Default with modified images and colors.

http://seven17.net/
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Bjørn

Ah..I see. Its because the "leftbar" <div> in index.template.php have some internal padding when its "on", but if not it just the regualr <td> that decides.

I don't know if you have modified anything there, but try to find this code:
        echo '<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;" id="bodyarea">';


And replace with this:
        echo '<td width="100%" align="left" valign="top" style="padding-left: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 10px; padding-bottom: 10px;" id="bodyarea">';


It just apply TP padding value to the forum , even when leftbar is not present. Let me know how it works.

Crip

That fixes the shifted look when in the forum but now creates a bigger gap between the side and middle bar.

http://seven17.net/
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Bjørn

ah..just add a "padding-right: 0;" right after..like this:
        echo '<td width="100%" align="left" valign="top" style="padding-left: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 10px; padding-bottom: 10px; padding-right: 0;" id="bodyarea">';

Crip

I added the code where you said and it didn't work. I added px to it thinking that would help but no good. :'(
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



This website is proudly hosted on Crocweb Cloud Website Hosting.