HTML CSS examples for CSS Layout:Responsive Layout
split a column in a responsive view using Bootstrap
<html lang="en"> <head> <style> .row {<!--from w w w .j a v a 2 s . c o m--> display:flex; flex-wrap:wrap; flex-direction:row; justify-content:space-between; width:401px; margin:0 auto; } .col1 { width:201px; height:401px; background-color:Chartreuse; } .col2 { width:151px; height:151px; background-color:yellow; } .col3 { margin-top:-201px; margin-left:auto; width:151px; height:151px; background-color:blue; } @media (max-width: 768px) { .row { justify-content:center; flex-direction:column; } .col1 { order:3; width:201px; margin-top:51px; } .col2 { order:2; width:201px; } .col3 { order:4; width:201px; margin-top:51px; margin-left:0; } } </style> </head> <body translate="no"> <div class="row"> <div class="col1"> Lorem i </div> <div class="col2"> Lorem i </div> <div class="col3"> Lorem i </div> </div> </body> </html>