Is it poor form to use class attributes with no corresponding css rule?
Posted
by CRice
on Stack Overflow
See other posts from Stack Overflow
or by CRice
Published on 2010-05-14T05:58:10Z
Indexed on
2010/05/14
6:04 UTC
Read the original article
Hit count: 199
For example if I wanted to select some elements with a certain class using jQuery, and for that reason only, is it always expected that those classes SHOULD be defined in the css?.
<div class="xyz">
something
</div>
<div class="xyz">
something else
</div>
//with example jQuery
$(".xyz").hide();
//is it wrong no element 'xyz' is defined in css?
© Stack Overflow or respective owner