Q
Q
qwerty17772018-03-15 14:40:20
css
qwerty1777, 2018-03-15 14:40:20

Select last element in css?

How to select the last element, namely the tag "a" and cancel the right padding from it? last-child selects all "a" elements, and you can see why

<ul className="footer__nav-menu">
  <li><a href="">домой</a></li>
  <li><a href="">о нас</a></li>
  <li><a href="">процесс</a></li>
  <li><a href="">команда</a></li>
  <li><a href="">наши работы</a></li>
  <li><a href="">услуги и стоимость</a></li>
  <li><a href="">вакансии</a></li>
  <li><a href="">контакты</a></li>
 </ul>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Orlov, 2018-03-15
@qwerty1777

.footer__nav-menu > li:last-child a {
padding-right:0;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question