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.
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
Comment #1
jamesmcd CreditAttribution: jamesmcd commentedSorted - 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
It is working fine, so I assume I have done it correctly
Comment #3
tnanek CreditAttribution: tnanek commentedIf 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
Comment #4
jamesmcd CreditAttribution: jamesmcd commentedIs this a better way of doing it than editing my themes style.css file?
Comment #5
tnanek CreditAttribution: tnanek commentedIf 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: