So, I had everything working fine here and now for some reason the css isn’t being applied to the site. If you view the page source then you will see the css file and the link to it works, but for some reason it isn’t applying?
I am a bit surprised though. I thought broken CSS only affected the part that had bad syntax (i.e. ignored) and the rest was still applied.
But apparently it can have much more dire effect.
Once things are off balance, there’s little chance of righting the ship. Usually I find that an error like this invalidates the rest of the style sheet.
Yes, in general the browsers are restoring the CSS in the next line after a “normal typo” (f.i.: 36p instead of 36px, hieght instead of height, etc.).
But if the error is in the punctuation itself, it can be worse!
Here after the opening bracket for the url(… the CSS was waiting in vain for the closing ), followed by a } for the end of the tag properties.
So everything before a ) had to be ignored. The other pairs were in balance: first the opening ( bracket, and afterwards the ) bracket. Therefore the closing ) bracket of a later url(…) didn’t help.
If you put somewhere in between a Wild West ), then the css after that will go on.