By devork on
Hi,
I am using default drupal 6 Garland theme with two columns. I have not much content and view stretched to whole window. How can I decrease the width that it is aligned in center but not completely stretched.
Regards,
Hi,
I am using default drupal 6 Garland theme with two columns. I have not much content and view stretched to whole window. How can I decrease the width that it is aligned in center but not completely stretched.
Regards,
Comments
Get to know the Garland theme: page.tpl.php
Drupal themes are underpinned by the page.tpl.php template, which specifies basic structure for every drupal webpage. In the case of Garland theme (which is found in the top-level core "themes" folder, not to be confused with contributed themes in "sites/all/themes" folder), you'll find the following relevant to your sizing inquiry:
In line 66 (page.tpl.php), you'll find div #center which is the body wrapper that contains div #squeeze, within which are two more div's: class "right-corner" and within that, "left-corner". Look up those div id's and classes in Garland's style.css file, and adjust the width attributes to your liking. (Note that the two classes do not have a width yet specified, but do have padding, margin and position values.)
How to decrease width
To increase/decrease width of garland theme sidebars replace all 210px (as this is pre defined width) in style.css file to your desired width.
and manage margin in this class
.left-corner {
padding: 40px 25px 2em 35px;
background:#eff7fd;
margin-left: 10px;
position: relative;
left: -10px;
min-height: 400px;
border:1px solid #c6c7c8;
}