Is it possible to change the background color of the block header for just one block in the sidebar_last region. I have 2 blocks in my sidebar last region and i want separate header background colors for each. An even, odd kind of setting will also do.
I tried changing in the style.css but that setting is for the entire region and not for one particular block.
any help is appreciated.

Thanks.

Comments

betoaveiga’s picture

I don't know the theme but using IDs you can change the block's background color.

Let's think that you have a block like this:

<div id='the-block' class='class1 class2 class3'> More HTML content </div>

Using the id in your .css file you can change it's color or any other property. Wisely most of the Drupal themes manage ID's for every block, so you change particular properties using the id selector.

#the-block {
  background-color:red !important;
}

And that's it!

newtodrupal21’s picture

Thank you very much for your suggestion.
Will try out your solution.

jeremycaldwell’s picture

Status: Active » Postponed
Issue tags: +fixed in fusion
newtodrupal21’s picture

Status: Postponed » Closed (fixed)
CowTownFarmBoy’s picture

Issue summary: View changes

Beto - This is still very helpful.