I'm using Marinelli 5.x-1.1 and I really do like it. However, I'm wondering if it's in any way possible to increase the block width and/or decrease the actual page-content width to create more space for content in a block?

Comments

tf5_bassist’s picture

Version: 5.x-1.1 » 6.x-1.7

I'm running the 6x version, and also looking for a way to control the column widths... But I'm not seeing a way to do it. I might have to firebug the css and look there, but even at that point, who knows. A control for this built in would be amazingly awesome.

pimentoski’s picture

its easy to change the lsidebar in css, just change 180px to something more, but then the page content drops to the end of the page

tf5_bassist’s picture

Well... that doesn't seem too productive at that point... Would that still happen if you shrunk the main body column to match? Or widened the overall layout? Has anyone successfully modified this theme in this way?

tf5_bassist’s picture

nothing new on this? :(

Lioz’s picture

you have to change main content width to match sidebar's width: content width is set in the marinelli width function in template.php

saltcod’s picture

this is old - but here goes anyway.

Get Firebug for Firefox. Hover over an element and it will have an associated width. change this value in your theme's css file - style.css.

e-roldan’s picture

Assigned: Unassigned » e-roldan

Only to confirm the last response, I've tried to change te width, and I used firebug to inspect the width of page by changing some parameters, and I saw taht the principal change must be done in the template.php file in the lines:

function marinelli_width($left, $right) {
$width = 395;
if (!$left ) {
$width = $width +150;
}
if (!$right) {
$width = $width +150;
}
return $width;
}

my template is 740px width but minus the magins and border it results in 695px that is the sum of 395+150+150, so you have to play with the numbers that matchs your neds.

Sorry for may bad english, and I hope it helps.

:)

HS’s picture

@e-roldan: Can you please give us newbies an example? I'm trying to get rid of both side bars and create one large 300px sidebar. Thank you!

radman16’s picture

I think a simpler way would be to create a subtheme and pick either of the existing sidebars to be your 300px sidebar and in the subtheme.css file over ride the width in layout.css for that sidebar, then in admin/blocks disable the other sidebar by making sure nothing is in it. For example, if you chose the right sidebar use:

.rsidbar {
width: 300px;
}

You'll also want to override the content width since this will be 80px narrower than the two sidebars combined as so:

.long{
width:825px; /* otherwise go wide... :) */
}

You may need to adjust to get the look you want. Note: .long and .short in layout.css are the widths of the content for one or two sidebars respectively.

oadaeh’s picture

Assigned: e-roldan » Unassigned
Issue summary: View changes
Status: Active » Closed (won't fix)

This issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-4.x branch.
Thank you.