Why is my CSS class being overwritten/ignored?

后端 未结 5 912
忘了有多久
忘了有多久 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:22

    There's a few options. The easiest is probably to move your line to be after the #home-block-area... section. CSS is read from the top down, the farther down elements override the ones above.

提交回复
热议问题