What is the CSS path will be for the item relative links?

Good day, need for
  • make the margin:0, but only for those who are in #homebox-add and have inside a Ref class .used

    Can't figure out how the string will look like, the order of the classes and ID-shnikov

    6046995824744fde9d29a5138f21be19.png
  • July 4th 19 at 23:18
    3 answers
    July 4th 19 at 23:20
    At the moment it is impossible to assign styles to an element based on its descendants. In other words - your task in pure css can not be solved. Most likely, the desired effect can be achieved differently, but no layout to speak about.
    July 4th 19 at 23:22
    Try for a.used to set a negative margin which, when added to the margin of the li will give 0.
    July 4th 19 at 23:24
    Without a complete example and pictures what needs to be accomplished, only telepathy.

    1.
    All li to specify zero margin.
    Then the links to add or not to add additional padding.

    2.
    Links a.used to add a negative margin.

    The second option is not a very pleasant smell. But again, if there's something complex in the design of the links, it may be nothing.

    3. JS

    Find more questions by tags CSS