i would like to reduce the width of sidebars i.e. make the content wider. but i failed to do so by modifying the zen class .css by specifying the #sidebar-left / right .block. what should i do? i am not very familiar with css indeed.

thanks a lot .

Comments

sisyphus’s picture

i mean there are always margin / padding on the right of both sidebars. how i can reduce them?

thanks.

sisyphus’s picture

anyone can help me on this please.

crutch’s picture

Hi,

Yes. For example

If I am using this stylesheet and only the left side bar and I want it to be 150px instead of 200px using: layout-fixed.css

then I need to modify the CSS to change the size of the margins and widths

Change the

  .sidebar-left #content
  {
    width: 810px;
    margin-left: 150px; /* The width of #sidebar-left. */
    margin-right: -960px; /* Negative value of #content's width + left margin. */
  }

I think this makes the content area width at 810px starting 150px from the left.

and then the container box


/** sidebar-left **/
  #sidebar-left
  {
    float: left;
    width: 150px;
    margin-left: 0;
    margin-right: -150px; /* Negative value of #sidebar-left's width + left margin. */
    padding: 0; /* DO NOT CHANGE. Add padding or margin to #sidebar-left-inner. */
  }

  #sidebar-left-inner
  {
    margin: 0 20px 0 0;
    padding: 0;
  }

Since it is floated left the it starts at the left so I only have to state the width and leave the margin as 0. I could move the left margin to the right if I set: margin-left: 810px and margin-right: -960px

Double check to make sure I'm correct.

Thanks,
crutch

sisyphus’s picture

thanks a lot for your detailed reply.

i found out that i have to make changes on some elements of layout-garland.css instead.

crutch’s picture

Assigned: Unassigned » crutch
Status: Active » Fixed

o yes. It is the layout.css of the theme that is being used.

Reopen if you need more help. Closed

crutch’s picture

Status: Fixed » Closed (fixed)
johnalbin’s picture

Status: Closed (fixed) » Fixed

@crutch, thanks for helping out. I really appreciate it!

But please see http://drupal.org/node/156119 for explanation of the "fixed" and "closed" status.

Status: Fixed » Closed (fixed)

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