Hello,
I have activated one sidebar. Using Firebug I found out that the width is Grid 4 (316 px). I want to reduce the width to grid 3 (232px) and increase the width of the main content from grid 8 to grid 9 (652 to 736px).

How to do this? I guess changing inside the aggregated CSS.css file is not really a solution, so probably I have to modify the page.tpl.php file? Can anybody help me to do this please?

Thank you

Comments

majovdh’s picture

subscribing

devzero’s picture

Component: Documentation » User interface
Category: support » feature

You can modify 'logics/layout.inc' - I think everything there is quite clear.

But I think, it would be great to have a way to do it through the administration pannel.

shruti.sheth’s picture

Hello,
One of the solutions for changing the width of the one sidebar and the main content can be as follows.
1. Add the following code in your marinelli.info file

stylesheets[all][] = css/marinelli.css

2.Create a css file named marinelli.css in your sites/all/themes/custom/marinelli/css/
3. Add the following code in your marinelli.css file

 #sidebar-first {
  width: 232px;
}

#siteContent {
width: 736px;
}

Hope this helps!

Regards,
Shruti Sheth

jimbaer’s picture

Another method is to find your "layout.inc" file for marinelli, which allocates grid positions to the various layout cases. Out of the box, a two column content and one column for menus would be allocated to Grid 8 and grid 4. Changing these allocations to grid 9 and grid 3 would do the job, but I think this would apply to all sites using Marinelli. For my site (jimbsail.info, Drupal 7) I had a left content and right menu structure, and narrowed it by changing the class from 'grid_4' to 'grid_3' :

elseif (($first && !$second) || (!$first && $second)) { // we have only one sidebar
switch ($layout_type) {
case 1: // content on the left
$class = 'grid_3';

And similarly changing the appropriate case further down the file from 'grid_8' to 'grid_9'

I'd be very happy to hear from anyone if this breaks any fundamental rules, or leaves out any further changes I should have made. It obviously introduces a maintenance step when updating marinelli, but I'm no expert in these matters!