Initially, it's important to understand that flexbox is distinct from a grid system and not meant to be a replacement for one.
Bootstrap 4 continues to offer a familiar grid system, but now includes the option to leverage certain advantages of flexbox in addition.
Regarding floats...yes, when you designate the parent element as display:flex
, the direct children (flex-children or flex-items) are unable to be floated.
However, since the display property isn't inherited, your floated content will still wrap properly.
img {
float: left;
margin-right: 1em;
}
.col-md-6,
.col-sm-6 {
background: pink;
}
.row {
display: flex;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<div class="container">
<div class="row">
<div class="col-md-6 col-sm-6">
<img src="http://picsum.photos/40/40" alt="" />
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque explicabo aspernatur delectus voluptate, nesciunt quibusdam ab reprehenderit, non et temporibus. Aut commodi, voluptates nulla deleniti pariatur vitae vel eos sit asperiores aliquid,
molestiae recusandae placeat corporis earum assumenda dolorem! Earum necessitatibus tempora enim nisi officiis in. Ducimus illo placeat eveniet.</p>
</div>
<div class="col-md-6 col-sm-6">
<img src="http://picsum.photos/40/40" alt="" />
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque explicabo aspernatur delectus voluptate, nesciunt quibusdam ab reprehenderit, non et temporibus. Aut commodi, voluptates nulla deleniti pariatur vitae vel eos sit asperiores aliquid,
molestiae recusandae placeat corporis earum assumenda dolorem! Earum necessitatibus tempora enim nisi officiis in. Ducimus illo placeat eveniet.</p>
</div>
</div>
</div>