I would like to ask for a little help. I have the following code, and I would like to move to the right the number "4" box. I tried with "justify-self" but it doesn't move at all.
What would be the reason of that?
ul {
display: flex;
flex-direction: row;
justify-content: center;
background-color: pink;
}
li {
padding: 20px;
margin: 30px;
background-color: grey;
list-style-type: none;
}
.rightBox {
justify-self: flex-end;
}
<div>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li class="rightBox">4</li>
</ul>
</div>