Is there a way to rearrange the order of the list items in an ul when the screen resolution changes, specifically having the last li appear in the first place?
Edit: I am attempting to achieve this by using flexbox.
.postpreview ul {
list-style: none;
display: inline-flex;
}
.postpreview ul li {
flex: 0 100px 30px;
}
@media(max-width: 1000px) {
.postpreview ul {
flex-direction: row-reverse;
justify-content: flex-end;
}
}
Currently, on smaller screens, the layout is not as desired. How can I make the last item appear at the top instead of staying on the right? Check it out live here: