Hello,
I have a problem about my background in this Danland theme. I tried to add blocks "Preface first\ middle\ last" with different backgrounds in CSS, but every time all of them shows that background3. What is the problem?
Help me, please..

CommentFileSizeAuthor
#3 block.JPG7.49 KBMNishihata
#1 mysite.jpeg121.22 KBDeepika.chavan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Deepika.chavan’s picture

FileSize
121.22 KB

Hi,
1. Rename your 'local-sample.css' file to local.css which is there in '/themes/contrib/danland' directory. If it is not there then you can create one local.css file.
2 . Please do clear cached data.
3. Try adding following css code in local.css file to change the background color of different block in above given regions.
4. Get block id by using firebug(Right click the block and select inspect element). In my case block-ids are 'block-block-6', 'block-block-7' and 'block-block-8' respectively. So replace my block-ids with yours and change the color.

  #block-block-6 {
  background: #7FFFD4;
}

#block-block-7 {
   background: #FF7F50;
}

#block-block-8 {
 background:  #CAFF70;
}

I tried it on my local site. Please see the attachment.

Rgrds,

Deepika chavan.

newerdrupal’s picture

Thank you so much, I have solved this problem.

MNishihata’s picture

FileSize
7.49 KB

Hi, I tried the above steps to change the block background color, but it only changes a part of the block. Can you tell me what I could be doing wrong? I changed the blocks so that they have rounded corners, so I didn't know if that might have something to do with it. Thanks.