Hacker News new | ask | show | jobs
by phoboslab 4267 days ago
Be careful with using // in CSS. It causes some browsers to completely ignore the whole rest of the CSS file after the line you wanted to comment out (iirc IE9 does this).

When I want to quickly comment something out (and don't have an editor shortcut handy), I just put an 'x' in front of the property name. I.e.:

    xbackground-color: #f0f;
1 comments

Yeah, well anything invalid :)