You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have an nth-child selector that respects order of the elements changed with an order property. It could be named like nth-order or nth-by-order.
.container
{
display: flex;
flex-direction: column;
}
.element.third
{
order:-1; /* Now it's the first element */
}
.element:not(:nth-last-order)
{
margin-bottom:20px; /* Actual last element doesn't have margin */
}
The text was updated successfully, but these errors were encountered:
It would be nice to have an nth-child selector that respects order of the elements changed with an
order
property. It could be named likenth-order
ornth-by-order
.Usage example:
The text was updated successfully, but these errors were encountered: