Modify block width
wesley424 - April 23, 2008 - 10:37
| Project: | Marinelli |
| Version: | 6.x-1.7 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | e-roldan |
| Status: | active |
Jump to:
Description
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?

#1
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.
#2
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
#3
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?
#4
nothing new on this? :(
#5
you have to change main content width to match sidebar's width: content width is set in the marinelli width function in template.php
#6
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.
#7
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.
:)