css selectors - Select an element with empty class attribute (class="") using CSS? -


is there css way select element looks class?

<a class="" href="..."> 

like selector empty class declarations?

you can use element-attribute selector here empty class value

div[class=""] {     color: red; } 

demo

note: can replace div required element


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -