Flexbox
- take element right flex-direction: column;
without use position
in CSS
Hey guys I want to take my element (one row) to right, but without use positioning.
This cod contain flex-direction: column;
and I can't control rows position.
How can I achieve it in right way with flexbox
elements.
body {
margin: 0;
background-color: rgb(247, 176, 232);
}
.container {
display: flex;
flex-direction: column;
height: 50px;
}
.box {
background-color: red;
height: 20px;
width: 50%;
}
<div class="container">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</div>