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

How to Invert Columns Using CSS and Flex

Posted: February 7, 2022 | by Site Host

.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.

Share it!

See also  JavaScript add Element to the Dom