D
D
Dima4jin2014-04-10 13:36:25
HTML
Dima4jin, 2014-04-10 13:36:25

How to access a child element in less?

For example, if you need to refer only to the link in the parent list?

<ul id="left-nav">
  <li> <a href="#">Техника добычи</a>
    <ul>
      <li><a href="#">item 0.1</a></li>
    </ul>
  </li>	
</ul>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Kirenkov, 2014-04-10
@Dima4jin

#left-nav {
  li {
    > a {}
  }
}

Something like this ... If I understand you correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question