By Artem on
Hi All
Could anybody please advice how I could change the width of one column in a Garland theme?
I've spent several hours with it today and unfortunately failed because of the low CSS skills. By playing with margins and widths I somehow managed to change the width of both columns, but cannot find the way to widen just one.
Comments
I would like to know this
I would like to know this answer as well. Thanks for posting!
one way is to edit the
one way is to edit the style.css in garland theme, then add these lines.
body.sideber-left {
width: 340px;
}
body.sidebar-right{
width: 800px;
}
other method is to create a folder in garland theme and you just name it. then inside that folder create style.css file and paste the above lines in the file. now this folder will become a new theme and you need to select this theme.
Hope this will help
Cheers.
Doesn't help
I tried doing that, naveenpl (+ "@import "../style.css";"). Unfortunately it didn't help.
Are there any other tricks to try?
By the way, not sure if it matters, but I am actually interested in modifying Minelli theme, that is a fixed width variant of Garland. (I tried you solution with clean Garland though).
Check the minelli theme
Check the minelli theme folder you can see just a style.css file then a snapshot.png file. This snapshotis used, where you select your theme.You are using the same method create a folder in garland (like minelli) say 'mytheme' Thats your new theme. create a style.css file in it and add new css for your theme. Now you need to select 'mytheme' from
administer/site building/themes.
Hope this will help.
Cheers.
I am able to create a new
I am able to create a new theme and if I change things in mytheme/style.css I see the effect on the site. E.g. it is completely unstyled if I remove "@import "../style.css";". Still I am not able to change the column width. Here is full content of mytheme's style.css:
Most probably some class are
Most probably some class are overriding you class. Use firebug and webdeveloper(addons for firefox) to find that.
This thing should work but its not the right way.
Open page.tpl.php in garland theme folder.
there is a code like this
This should work.
you can even create new class for those div and define them in style.css.
Hope this will help.
Cheers.
Thank you for following this
Thank you for following this up, naveenpl. Unfortunately changing page.tpl.php also didn't help. Oh well, it did change the column width indeed, but then the right sidebar was moved down below the left one and central one.
As you might guess I was searching the web and it looks like I am not alone with this problem (I didn't find a solution though). Probably this theme expects various margins and sizes match each other very well and for doing it I need to understand which numbers to match, there are so many.
I tried webdeveloper (and was able to reach same effect with it - changed sidebar width, but it was moved down). Didn't try firebug ever, will try it now.
Thank you for your help.
I just gone through some
I just gone through some topics then i found this,
http://drupal.org/node/242225
"If you need to work on style.css with non-default color scheme, you need to do "Save Settings" after you make any changes to the style.css in the theme folder. If you do "Save Settings", then the style.css in files/color/yourtheme-XXXXX/ directory is updated (actually, a new files/color/yourtheme-ZZZZZ directory is created) to reflect the change you have made to your original style.css in the theme directory.
So as long as you use the default color scheme, this is not necessary. This is neccessary only for non-default color schemes."
Hope this will help.
Cheers.
Firefox solution
Firebug is a fantastic tool indeed.
I was able to add 100px to the leftbar:
It works in Firefox, but not in IE5 yet.
Oups, there was an error in
Oups, there was an error in my own module. Actually the above snippet works in IE 5 also. Not sure about the other browsers
Hey, thanks for posting
Hey, thanks for posting this, I needed to mod garland to have sidebars with different top margins, and I used this method.
#wrapper #container #sidebar-left {
margin-top: 20px;
}