PDKnight PDKnight - 17 days ago 5
CSS Question

Select elements with same attribute value

Is there any way to select elements with same attribute value which I don't exactly have access to? I imagine doing it in way like this:

.first[attribute=.second[attribute]]


I want to use ONLY pure CSS.

Answer

no, there is no way to achieve this using css

however, if you need to do something like this you should consider changing your markup (ex. using additional classes) - css is not a programming language

Comments