html - CSS : How to do the reverse of line wrapper -


after search, don't find how reverse of this, i'll give height, , second div under first , third div on right.

https://jsfiddle.net/qq3n52vg/

.wrapper {    border: 1px solid black;    width: 30px;  }    .left {    border: 1px solid red;    display: inline;  }
<div class="wrapper">    <div class="left">1</div>    <div class="left">2</div>    <div class="left">3</div>  </div>

thanks

you can use flexbox wraps in column flex-direction - see demo below:

.wrapper {    border: 1px solid black;    height: 40px;    display: flex; /* define flexbox*/    flex-wrap: wrap; /* allow wrapping*/    flex-direction: column; /*column direction*/    align-items: flex-start; /* override default stretching*/    align-content: flex-start; /* aligning wrapping lines */  }     .left {    border: 1px solid red;    display: inline;  }
<div class="wrapper">    <div class="left">1</div>    <div class="left">2</div>    <div class="left">3</div>  </div>


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -