Left sidebare

saskmember - February 28, 2009 - 02:34
Project:Austere
Version:6.x-4.4
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Is there a way to make the left sidebar narrower?

#1

duvien - February 28, 2009 - 10:14

You'll need to change the width value in page.tpl.php, the lines to change are:

<?php if ($right);else echo "<style type=\"text/css\" media=\"all\">#main {width:660px;}  #main .inner {padding-right:0px;} #mission {margin-right:0;}</style>"; ?>
<?php if ($left);else echo "<style type=\"text/css\" media=\"all\">#main {width:660px;} #main .inner {padding-left:0px;} #mission {margin-left:0;}</style>"; ?>
<?php if ($right);elseif($left);else echo "<style type=\"text/css\" media=\"all\">#main {width:448px;} #main .inner {padding:0px;} #mission {margin:0;}</style>"; ?>

#2

saskmember - February 28, 2009 - 22:03

Thank you for your quick reply...

I really like your theme - it is working quite well for me.

For the left sidebar, I have tried the following....

on the line where it says if ($left)....
.... changing the #main width to 760
.... adding #sidebar-left {width:120px; }
.... adding #sidebar-left .column {width:120px; }

The left sidebar stays the same.

What am I doing wrong or not doing?

The website I'm using it on is..... http://www.lakeviewca.com/cms/
It's a non-profit organization where I'm hoping to turn over the webpage updating to someone else.

If the leftside-bar area could be reduced a bit (because not many will be given login priveledges), it would reduce the amount of blank area on the left.

Thank you for your help.

#3

duvien - February 28, 2009 - 22:43

Open up style.css and change:

#main {width:780px;}
#sidebar-left {width:120px}

The way it works just now is a bit ugly. I'll really need to update it using template.php instead to split out css classes in the body tag for left and right sidebars, though it will do for now until i have some free time.

#4

saskmember - February 28, 2009 - 22:58

Fixed!!!

Thank you!!! ---- it turns out that since I used the color module, there was yet another style.css that I didn't find and didn't update.

#5

saskmember - February 28, 2009 - 22:58
Status:active» fixed

Forgot to set it to "Fixed!!"

#6

duvien - February 28, 2009 - 22:59

No worries, also you may have to clear your cache after making changes.

#7

System Message - March 14, 2009 - 23:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.