This question has already been answered:
- How to use selectors correctly? 4 replies
The problem with which I, which is very strange, has not yet met. I have a structure similar to this:
<div class="items-wrap"> <a class="colink"></a> </div> And such classes: .items-wrap a , .colink .
The problem is that .items-wrap a binds to the link, and the local class .colink completely ignored.
Why is this so? And how do I fix this?
.items-wrap agreater than.colink. because its properties are more important - lexxl.items-wrap awill have to be removed on dozens of pages. It is necessary to find a simple solution that will surpass this selector. - Telion!Importantbetter to avoid, otherwise at some point you will have a project floor in them. In extreme cases, it should be used ... And you had better increase the weight of the selector ... so that it was more than.items-wrap afor example do so.items-wrap a.colink- Alexey Shimansky