Moving sidebars, making fluid-width?

lsabug - November 4, 2007 - 17:09
Project:Marinelli
Version:5.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Hi, dig the theme and was wondering if there was a simple way to move the leftsidebar to the left? I tried modifying the template and page tpl but broke the layout.
Thanks!

#1

lsabug - November 5, 2007 - 17:40

Figured it out, changed the page.tpl.php at around line 49 to put sidebar_left above primary and thus far it seems to work. You'll have to tweak the css as well.

<div class="content">
 
                  <!-- sidebar_left -->
        <?php if ($sidebar_left) { ?>
          <div class="lsidebar">
            <?php print $sidebar_left ?>
          </div>
        <?php } ?>
 
   <div id="primary" style=<?php print '"width:'.susdmar_width( $sidebar_right, $sidebar_left).'px;">' ?>
            
 
   <div class="singlepage">


   <?php if ($breadcrumb) { ?><div class="path"><?php print $breadcrumb ?></div><?php } ?>

         <?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
          <?php if ($tabs): print '<div class="tabs">'.$tabs.'</div>'; endif; ?>
        <?php if ($help) { ?><div class="help"><?php print $help ?></div><?php } ?>
          <?php if ($messages) { ?><div class="messages"><?php print $messages ?></div><?php } ?>
<div class="drdot">
<hr />
</div>
 
<?php print $content ?>
      </div>
      <hr />
      <!-- // itementry -->
    </div>
    <!-- //primary -->
    <hr />

   <!-- sidebar_right -->
        <?php if ($sidebar_right) { ?>
          <div class="rsidebar">
            <?php print $sidebar_right ?>
        
          </div>
        <?php } ?>

#2

gearhead - February 27, 2008 - 18:13

Where do you have to tweak the CSS?
I really like this theme but need it to have one side bar on the left and one on the right?

Thanks
GearHead
www.musclecarsociety.com

#3

AndriaD - March 2, 2008 - 18:10
Title:Move left side bar to left?» Moving sidebars, making fluid-width?

I'm wondering about making this design truly flexible, so the content area gets narrower if the browser window gets narrower -- otherwise the right side disappears and those folks who live in the land of DUH! wouldn't think to look over there. But in the css I see all this !important! stuff with the page width, so I'm wondering if this is feasible.

Great design, otherwise; I'd just like it to be fluid-width.

Thx!
Andria

#4

Lioz - March 5, 2008 - 22:57
Status:active» won't fix

not planning to make it fluid width at the moment!

#5

pimentoski - March 19, 2008 - 00:15

but can you make the left bar to be on the left side?

 
 

Drupal is a registered trademark of Dries Buytaert.