Why is my CSS class being overwritten/ignored?

后端 未结 5 949
忘了有多久
忘了有多久 2021-01-18 17:48

I know that id takes precedence over class; unfortunately my html is generated by Drupal and there\'s no way for me to add an id to the particular div that needs styling.

5条回答
  •  独厮守ぢ
    2021-01-18 18:12

    It's a shame that you're being forced to solve the problem in a hacky way...

    #home-blocks-aread .block div.content { background: none; }
    

    would do the job.

提交回复
热议问题