Home  »  CodeSnippets   »   How to Invert Columns Using CSS and Flex

How to Invert Columns Using CSS and Flex

Posted: February 7, 2022 | by Michael Bright

.cols{
   display: -webkit-box;
   display: -webkit-flex;
   display: -ms-flexbox;
   display: flex;
   -webkit-box-orient: vertical;
   -webkit-box-direction: reverse;
   -webkit-flex-direction: column-reverse;
   -ms-flex-direction: column-reverse;
   flex-direction: column-reverse;
}

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.