KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a CSS selector where i can select all anchors with a class containing icon-* <a class="icon-a icon-large scrollTo" href="#a"></a> <a class="icon-large icon-b scrollTo" href="#b"></a> <a class="icon-large scrollTo icon-c" href="#c"></a> I just jumbled up the icon- since i want to check if the css selector can handle all cases. I want to be able to change the style of all anchors that contains the class icon-*. This code doesn't seem to work. a [class^="icon-"], a [class*=" icon-"] { text-decoration: none; color: #1BA1E2; } Is Javascript my only option?
Tags (comma-separated)
Save Edits
Cancel