Override Materialize CSS properties

爷,独闯天下 提交于 2019-12-05 08:31:39
krishna

Inn Materialize's the rule is set by footer.page-footer {}, but you're wrote just .app-bg. So you can't override the Materialize's rule.

If u want to override that class you can use footer.app-bg or use !important:

footer.app-bg {
  background-color: red;
}

or

.app-bg {
  background-color: red !important;
}

Make the css selector more specific, like this:

footer.app-bg {
  background-color: red;
}

If your css is not applying to the element because of other applied css just use !important to specify that your css is important.

.app-bg {
  background-color: red !important;
}

Example : https://jsfiddle.net/79ss2eyr/2/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!