简体   繁体   中英

CSS - changing font color in a sidebar

http://ratest3.com/news/

I'm trying to change the text the the left hand sidebar area. Everything in the div #primary (to #fff).

I have tried (along with a few other things);

#primary .widget-area {color: #fff;}

and it still wants to obey the line on 201 of style.css

You can use !important :

#primary .widget-area {color: #fff!important;}

Edit :

It's

#primary.widget-area {color: #fff!important;}

(without space) because

  • #primary .widget-area means all elements with class widget-area inside the element with id primary .
  • #primary.widget-area means the element with id primary which has also the class widget-area .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM