Solved

How to Resize Block Region in Drupal?

Posted on 2012-03-19
1
1,417 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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now