Solved

How to Resize Block Region in Drupal?

Posted on 2012-03-19
1
1,453 Views
Last Modified: 2012-03-29
I'm using the out of the box Bartik theme on my Drupal 7 site.

I have some content I was going to stick into a block, and place it in the Sidebar Second region but the content is being squeezed.

How can I resize the block, or resize Sidebar second region (which ever is best practice)?
0
Comment
Question by:sandshakimi
1 Comment
 
LVL 14

Accepted Solution

by:
Scott Madeira earned 400 total points
ID: 37744171
If you want to make changes directly to the Bartik theme you would change your CSS in /themes/css/layout.css.  This isn't generally considered a good practice as you are messing with core Drupal that will get overwritten in an upgrade.

I would suggest that you copy the bartik theme to /sites/all/themes/mybartik, rename the bartik.info file to mybartik.info in the new location, update the mybartik.info file data (change the name, description, etc.

Make mybartik your active theme, clear caches, etc. and make sure it works.

THEN, change the layout.css file to change column widths.  You probably want to change some combination of these lines to make things fit:

.one-sidebar #content {
  width: 720px;
}
.two-sidebars #content {
  width: 480px;
}
.no-sidebars #content {
  width: 960px;
  float: none;
}
#sidebar-first,
#sidebar-second {
  width: 240px;
}

Open in new window

0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question