CSS Invalid Property Value?

If you are using inverted commas in your CSS, please remove them from your CSS file.

For example, find difference between each CSS rule set for .row:

.row {
     margin-left:'-16px !important';
    margin-right:'0px !important';
}
.row {
    margin-left:-16px !important;
    margin-right:0px !important;
}

Another possible cause could be that you have a "Hidden Character" in the css property or value.

To fix that, copy the code directly from you IDE to some "Hidden Character" detector like this one https://www.soscisurvey.de/tools/view-chars.php ,delete the 'bad' characters and then save your code again without the bad characters.

Bonus: If you are using a JetBrains ide like WebStorm, this plugin can help you https://plugins.jetbrains.com/plugin/7448-zero-width-characters-locator


change

background-color:

to

background:

Because background is a shorthand property for

  • background-color
  • background-image
  • background-position
  • background-repeat
  • background-attachment

Tags:

Css