0

Why do I need !important for the margin:0 to show?

@import "bootstrap-sprockets";
@import "bootstrap";

.alert {
  margin: 0 !important;
}

and

 *= require_tree .
 *= require_self
nachime
  • 1,826
  • 4
  • 16
  • 25
  • 1
    answer is already explained here http://stackoverflow.com/questions/5701149/when-to-use-important-property-in-css – Sachin G. Jul 30 '16 at 14:40
  • where? I know what `!important` does I don't know why I need it to override bootstrap.css when bootstrap.css is imported before my own css. – nachime Jul 30 '16 at 14:45

0 Answers0