Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I am still pretty new to modding themes for drupal, but have a fair amount of css experience. What is the best way to change the width of columns in Marinelli?
Great theme by the way! Thanks for sharing with everyone.
-Syphon7
Comments
Comment #1
syphon7 CreditAttribution: syphon7 commentedI was able to solve this problem. If you go into layout.css you have to add
#sidebar-first
{
width:20%; (or whatever you are aiming for)
}
Comment #2
pauljohn32 CreditAttribution: pauljohn32 commentedThanks for the pointer. I notice that the other sidebar is separately adjustable.
#sidebar-first
{
width: 15%;
}
#sidebar-second
{
width: 5%;
}
Comment #3
hotpowerz CreditAttribution: hotpowerz commentedI can resize the side bar. However, the main content column doesn't enlarge automatically. It makes a big blank gap between side bar and content.
Please help.
Comment #4
xiaomo CreditAttribution: xiaomo commentedI have the same problem, looking for answer
Comment #5
shruti.sheth CreditAttribution: shruti.sheth commentedHello,
One of the ways for removing the big blank gap between side bar and content can be as follows,
1. Create a new custom css file named 'marinelli.css' in your sites/all/themes/custom/yourtheme/css/
Add the following code in your marinelli.info
2. Add the following code in your marinelli.css file
Please Note: The width and margin for sidebar-first, sidebar-second, sidebarWrapper and siteContent can be changed according to the requirements.
Hope this helps!
Regards,
Shruti Sheth
Comment #6
Abhinaw CreditAttribution: Abhinaw commentedhii
I am using bootstrap theme https://www.drupal.org/project/bootstrap
in this theme i have created left sidebar for different role.
while we open site role as anonymous user its width is perfect.
As we login as authenticated use the side bar menu width is increase how to customize width please help
Thanks
Comment #7
BhumikaVarshney CreditAttribution: BhumikaVarshney as a volunteer and at OpenSense Labs commentedThe best way to change the width of columns in Marinelli is to give the width in percentage for the grid instead of pixels.
.container_12 .grid_1 {
width: 10%;
}
So as the grid number increases the percentage of the columns also increases.
Comment #8
BhumikaVarshney CreditAttribution: BhumikaVarshney as a volunteer and at OpenSense Labs commentedComment #9
gaurav.kapoor CreditAttribution: gaurav.kapoor for DrupalFit commented