Closed (fixed)
Project:
Genesis
Version:
6.x-2.1
Component:
Genesis SUBTHEME
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 May 2009 at 05:59 UTC
Updated:
16 Sep 2009 at 05:16 UTC
Hi Jeff,
I wanted to change the colums width for my subtheme but now I'm totally lost.
My plan is to have a fixed layout with 856px and one fixed right sidebar with 200px. So I decided to Genesis 2c as a base layout.
In page .css I changed the following:
#container {
width: 856px; /* Width for IE6 */
}
body > #container {
width: 856px; /* Width for all other browsers */
max-width: 856px; /* set a maximum width */
min-width: 856px; /* set a minimum width */Now I would have to add and change the following:
#genesis-2c .two-sidebars .content-inner{margin-right:520px;}
#genesis-2c .sidebar-left .content-inner{margin-right:260px;}
#genesis-2c .sidebar-right .content-inner{margin-right:260px;}
#genesis-2c #sidebar-left{width:240px;margin-left:-500px;}
#genesis-2c #sidebar-right{width:240px;margin-left:-240px;}
#genesis-2c .sidebar-left #sidebar-left{width:240px;margin-left:-240px;}
And this is my problem ... I don't know exactly what modifications would be correct ...
Could you help me out or point me to the right direction?
Thanks in advance,
Andreas
Comments
Comment #1
Jeff Burnz commentedNo problem, paste the modified layout into your subthemes page.css file. I added some comments to explain what each line line does.
You have sparked an idea actually, I'm thinking I could build a form/widgety thing on my website so you could just select your required layout, enter the values for the sidebar widths and then it generates the layout for you. Cool.
Comment #2
Jeff Burnz commentedThis has been added to the Genesis documentation on modifying the layout:
http://drupal.org/node/439670#modify-layout
Comment #3
culfin commentedThis works like a charm! ... thank you so much for your support. :-)
Comment #4
Jeff Burnz commentedComment #6
ArgentOfChange commentedI'd also suggest adding #genesis-2c #main-content somewhere, with the same styles as #genesis-2c .two-sidebars .content-inner for the admin pages.
Comment #7
Jeff Burnz commented@ArgentOfChange (and my fellow Kiwi), what would be purpose of adding this class, not sure i follow your reasoning.
Comment #8
ArgentOfChange commentedUgh, how embarassing - my bad!
For some reason when I first applied the styles #main-content would overlap the sidebars. But that didn't happen once I set a different value for the minimum and maximum width for #container.