Is there a CSS selector where I can select all the anchors with the class containing the 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 messed 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 containing the class icon - *. This code does not work.
a [class^="icon-"], a [class*=" icon-"] { text-decoration: none; color: #1BA1E2; }
Is Javascript my only option?
atp03
source share