Hello,

I like you template very much, but, is it possible to have no columns - or sidebars (i dont know what to call it) so that i have more place to write in my content?
Because when i dont use them in my blocks, there is still a white piece on the right.

I hope this is solveable.

Thankyou for your time,

Mr.nuub

Comments

kbk’s picture

Component: User interface » Code
Assigned: Mr.nuub » Unassigned
Priority: Critical » Normal

I've got the same question. Is this a simple css modification? Perhaps of #primary in layout.css? Will return if I figure this out.

kbk’s picture

Title: Center content when no columns are present » sidebars or columns

This solution seems to work für mich.

I added a "columnless" test to /sites/all/themes/marinelli/template.php

function marinelli_width($left, $right) {
  $width = "short";
  if (!$left ) {
    $width = "long";
  }  
   if (!$right) {
    $width = "long";
  }
  if (!$right && !$left ){
    $width = "columnless";
  }
  return $width;
}

and then modified layout.css as follows:

#primary {
        /*float: left;*/
        /*margin: 0px;*/
        /* width set with the two classe below */
        }       

.short{
        float: left;
        margin: 0px;
        width:550px; /* if we don't have the second sidebar */
}

.long{
        float: left;
        margin: 0px;
        width:745px; /* otherwise go wide... :) */
}

.columnless{
        margin-left: auto;
        margin-right: auto;
}

The only things I have in the columns are navigation blocks that are hidden from anonymous users.

kbk’s picture

Title: sidebars or columns » Center content when no columns are present
oadaeh’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

This issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-4.x branch.
Thank you.