1
Guys, I have some columns, made with ul li
<ul>
<li>1</li>
<li>2</li>
<li>1</li>
<li>2</li>
<li>1</li>
<li>2</li>
<li>1</li>
<li>2</li>
<li>1</li>
<li>2</li>
<li>1</li>
<li>2</li>
</ul>
Which will look like this in case, 2-in-2
[1] [2]
[1] [2]
[1] [2]
[1] [2]
[1] [2]
[1] [2]
I wanted to give a margin-left
of 15px but I just wanted that margin-left
in column 2, that is, everyone who is in the right-hand column >>> has a margin-left.
I tried with Nth-Child but it didn’t work out so well.
Would anyone know any way to do that?
With the
nth-child
you didli:nth-child(even)
?– Woss
I tried with li:Nth-Child(2n) but sometimes it gives the margin in the left column <<
– Lucas de Carvalho