I have having an issue removing the padding from the regions within in the Acquia Prosper theme. I am fairly new to Drupal and Acquia Prosper, so I hope my explanations are sufficient.
Firstly, if you look at the first attached file (help1.png), I cannot removing the spacing at the sides of the shopping cart, that is contained within the "sidebar-last" region. I have set the padding in the the local.css file to zero but no luck.
Secondly, and similarly to the first issue, there is about a 20px space at the bottom of a few other regions (header-top, postscript-bottom, footer) after I add a block (even if that block just contains text). Again I have set the padding to zero but it doesn't fix the issue.
Also, I was wondering how to extend the length of the sidebar-first & sidebar-last regions so that they go to the bottom of the page.
Thank you for reading.
| Attachment | Size |
|---|---|
| help1.png | 3.79 KB |
Comments
Sorry, It seemed the file
Sorry, It seemed the file didn't attach to the message.
Can you...
provide your actual site link so I can look closer? I am using Prosper on one of my sites (and LOVE it), so I'm pretty familiar with the css. I believe what you're referring to as padding is actually an image.
For the padding:
Look in your grid css in the Fusion Core theme. You'll see sidebars. There you can control padding and margin. For the other blocks: You'll need to look in the style.css for both padding and margins. If the 0 values aren't sufficient, you may need to add negative values, like -15px.
The height of the sidebars:
They're scaled by amount of content by default. But you can apply a height. To do so, open your grid css (grid12 or grid16, whichever you're using); this will be in your Fusion Core theme, not Prosper.
Now under /* full width blocks in sidebars */, just add in your height value. Start with, say 400px and go up or down from there. Remember, files like typography, style grid12 and grid16 have major control over the theme... and those are all in the Fusion Core.
When you provide your link, I can check it out and give more precise directions. But this will get you started.
Good luck!
Chris
Thanks for the reply
Thanks for the reply Chris.
The site I am using to play around with Acquia Prosper is http://www.todtesting.com/
I found "grid16-960.css", and I couldn't see sidebars in the file (so I couldn't see how to adjust the height), but I did manage to remove the padding in the sidebars by editing this:
/* gutters (2 x margin) */
.block .inner {
margin-left: 10px;
margin-right: 10px;
}
Changing the margin to 0 removed the sidebar padding.
I am still having a problem with the bottom padding in the header-top, postscript-bottom and footer regions. I have looked at style.css for the padding in these regions but I don't see it.
Gutters in Acquia Prosper/Fusion Core
Mike,
As you've discovered, the gutters (spacing between content in a grid layout) is defined in the grid css files in the Fusion Core base theme.
A unique feature of Fusion-based themes is that you can easily change the gutters without having to re-calculate the entire grid.
Some tips in doing this:
If you want to change your gutters, use the local.css file (rename local-sample.css to local.css) to override them so that you don't have to worry about your changes being overwritten when you update Fusion Core in the future.
When you change the gutters by targeting .block .inner, you change them for the entire layout. So if you set them to zero, you wouldn't have any horizontal spacing between content at all. If you only want to target sidebar-last (for instance) you can use .sidebar-last .block .inner instead.
In some cases, if you don't want to alter the gutters for the entire layout or even a region, you can use negative margins to "pull" the width of one or more block elements over the gutter.
The spacing you're seeing at the bottom of regions after you add a block is the 1.5em margin bottom for .block defined in the Fusion Core style.css stylesheet. This allows you to stack blocks (singly in sidebars or to create multiple rows in other regions) but still have some spacing between them. By the way, the reason for using ems is that while horizontal spacing in Fusion-based themes is defined by the grid as either pixels or percentages (for fluid layouts), the vertical "rhythm" is text based. So the size of vertical spacing tries to track text size in order to keep things proportional.
Regardless, you could target .postscript-bottom .block, for instance, to change the margin-bottom value if you wish (using local.css).
Also, if you're not already using the Firebug extension for Firefox to locate the css for different properties of your layout, I strongly recommend it.
Extending the height of a column to go to the bottom of the page is a bit of a thorny issue, since it's not something that html and css want to do naturally. Typically it's known as the "equal height column" issue, since the bottom of the page is defined by the tallest column, with the shorter column not reaching the bottom. One popular solution is known as "faux columns" and it works by extending a visual background far beyond the bottom of the page for all columns in order to give the appearance of every column reaching the bottom of the page.
Another approach is to use javascript to dynamically resize columns. Fusion Core has an equal heights script that supports a Skinr block setting that allows you to make all of your blocks in a region the same height. But there is nothing built in to do the same for regions themselves. That said, it might be possible to use the same approach to equalize a sidebar's height with that of another region, though it'd take some javascript hacking.
Thanks for using Acquia Prosper/Fusion.
Thank you for all your help.
Thank you for all your help. Good to know I don't have to use the grid css to remove the margin. All my questions have been answered.
Resizing Blocks?
This gets me (total newbie) in the ballpark, but I'm trying to use Fusion Starter. I'd like to make the various built-in regions (Header Top, Header, etc.) not have any margin/padding, but sit tight on each other. I looked in the Fusion Core, but there's no local-sample.css. There is, however in Fusion Starter, but it's empty. I take it that a local.css in Fusion Starter's directory is a sort of "overrider" css that gets read last and has the last say. What exactly should go in this local.css to make my regions/blocks' margins/padding move?
Another question, should I be sub-theme-ing if I'm beginning to hack around in the css forests? Is it safe to sub-theme Fusion Starter?
Help please! I hope someone can..
Hi i am new to this theme, I have been making basic changes to the theme CSS to get the site looking as it does (www.hgriffiths.co.uk) when logged in as Admin there is no issue, but when i log out as if i am a regular 'joe', the theme jumps to the right if i click on a tab in the primary link section! it only happens from the main page, index. Can anyone please shed some light on this as i have done a complete reinstall and redesign thinking i made a mistake somewhere along the line, to find out the issue is still there! please help
Thanks Dangriff
Dangriff, are you sure this
Dangriff, are you sure this is a padding issue? (If not you may get more replies if you start a thread of your own)
I'd check the blocks first to see if any are throwing the theme out. Do you have any that are set up for authorised users only, not for guests or admins?
getting closer to the issue>>
Right i have managed after lots of time trying everything i know, even trying completely new themes. and to my surprise it was still there!
This led me to think it was code that i had entered when creating the content for the page! after bashing it about and eventually deleting all content, it stopped?!
So i then stripped it right down and figured out that on the other pages that i created on the main menu bar links, did not have at least one full length of text but only "site is under construction"!
This is the issue!. the fact that there is no content on the other page, or at least several lines of text.
I don't know if this is supposed to be like this but as a visual designer it has complete thrown me for a couple of days.
Is this a bug i don't know, but i would of thought that even if you have a small amount of text this should not occur.
thoughts on this would be good..
Thanks
Dangriff