I'm not sure where you heard that, but it most definitely not true. A dash is not only completely valid, but actually becoming more popular than the underscore.
It's poor formatting, better to keep the dashes in the rules and the underscores in the names. It makes it easier to read when going through a 4000 line css file.
Is there a way to do have the same basic counter effect without needing to learn the prototype framework?
lcarsos 1 year ago
It is just a matter of preference. I perfer using camel style. Example: "gameEngine.php".
JamesRCoston 2 years ago
css classes should never use a "-" in their name
Dysl3xicDog 2 years ago
I'm not sure where you heard that, but it most definitely not true. A dash is not only completely valid, but actually becoming more popular than the underscore.
webdevelopersfold 2 years ago
It's poor formatting, better to keep the dashes in the rules and the underscores in the names. It makes it easier to read when going through a 4000 line css file.
Dysl3xicDog 2 years ago