Is there a way to select an element in CSS by class, then by the rel attribute? Thanks.
Asked
Active
Viewed 468 times
3
-
you're probably using rel incorrectly. Look at data http://ejohn.org/blog/html-5-data-attributes/ – Galen Sep 09 '13 at 21:57
-
possible duplicate of [CSS - style a link based on its "rel" attribute?](http://stackoverflow.com/questions/5608808/css-style-a-link-based-on-its-rel-attribute) – David Thomas Sep 09 '13 at 22:11
1 Answers
2
.class [rel="value"]
if it's a child, and
.class[rel="value"]
if it's the same element.

Igor
- 33,276
- 14
- 79
- 112