Solved

How to Resize Block Region in Drupal?

Posted on 2012-03-19
1
1,500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

734 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