Answer the question
In order to leave comments, you need to log in
How to correctly write pseudo elements in less?
Hello! I ran into a problem I can not figure it out myself, I ask for your help!
There is such a block:
tell me where I cant? how to remove the pseudo element before the first menu item?
Here are the pieces of code and styles:
<section id="project">
<div class="resize clear">
<h2>Реализованные ПРОЕКТЫ</h2>
<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>
</menu>
menu {
text-align: justify;
line-height: 0;
padding: 0;
margin-left: 30px;
margin-right: 30px;
&:after {
width: 100%;
height: 0;
visibility: hidden;
overflow: hidden;
content: "";
display: inline-block;
}
li {
display: inline-block;
text-align: left;
padding: 5px 0;
position: relative;
a {
display: block;
font-size: 20px;
line-height: 1.3em;
color: #0d0d0d;
text-transform: uppercase;
&:hover {
color: #c31e2f;
}
}
}
&:not(:first-child) li:before {
top: 18px;
left: -35px;
content: "\\\\";
position: absolute;
font-size: 20px;
width: 5px;
height: 5px;
color: #a6a6a6;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question