Solved

How to Resize Block Region in Drupal?

Posted on 2012-03-19
1
1,539 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

617 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