Fix bugs in CSS found by CSSLint [cherry-pick from previous PR]

Maybe you'll want to make use of this, because I'm sure that you didn't even browsed changes made in my previous PR before you went into "rant mode"...