Pin an element to opposite side of the flex container

Using margin: auto, you can pin an element to opposite side of flex container.

Code Structure
.flexcontainer {
 display: flex;
 flex-direction: column;
}

.flexcontainer .pinbtm {
 margin-top: auto;
}

Note: Try with margin-left, margin-right etc

Example


Share this

Related Posts