Search code examples
csscompass-sass

Browser doesn't rewrite css property


I'm working with compass framework and it resets a lot of default css styles:

..., h1, .. {             // line number 18
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

Hereinafter i defined my style for h1:

h1 {                      // line number 77
  font-weight: bold;
  color: #333;
  padding: 15px, 5px, !important;
}

But chrome browser didn't accept the padding property and left as 0. All another properties are fine.

Why the browser didn't accept the lower css property? Thanks


Solution

  • Your code modified,

    h1 {                      // line number 77
      font-weight: bold;
      color: #333;
      padding: 15px 5px !important;
    }
    

    Just remove before important comma.

    Please try this..