Hello,

Looking at blocks - how do I go about applying a specific css style to individual blocks?

What I want to do is put a background image behind my blog block by css which is particular to that block, and not repeated on others.

Cheers,
E

Comments

killes@www.drop.org’s picture

If you look at the html source of a Drupal page you will find that each block has its unique CSS ID. for exaple the main navigation block has the ID "block-user-1". This tells you that this block is the block No. 1 that is exported by the user module. All other blocks have similar IDs.

pgassner’s picture

Also have a look at this post:

http://drupal.org/node/view/10185