I would like to change the background colour of a block I have in the footer to match the colour of my main site background. At present it looks daft in a different colour due to its placement and also the content within. If I am able to change the colour to match the current site background it will greatly improve the aesthetics.

Does anyone know the best way to do this?

Thanks

Comments

jamesmcd’s picture

Status: Active » Fixed

Sorted - Should have looked closer, I stupidly didn't realise each block had its own div id.

I have used the following in fourseasons/style.css

#block-block-18 {
background-color: #FFFFFF;

It is working fine, so I assume I have done it correctly

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

tnanek’s picture

If I were you, I'd add this through another module so you havn't hacked up the site (saves you trouble when upgrading the site). The module I would use is css injector

jamesmcd’s picture

Is this a better way of doing it than editing my themes style.css file?

tnanek’s picture

If the theme gets updated in the future (which is quite possible considering its still in dev) then you don't have to figure out what in your style.css file that was added (or modified) for custom reasons - its all in the css_injector module - you may have to modify it with updates, but a general one like what you had to do above doesn't seem like its something that needs to be modified at all.

Quoting from the project page:

This module is definitely not a replacement for full-fledged theming, but it provides site administrators with a quick and easy way of tweaking things without diving into full-fledged theme hacking.