In my code below, I would like the div with class card-columns
to be inline/adjacent with the div having class card-custom
.
I think what I'm trying is easy but I can't find the correct combination of display and floats to get it working.
I tried making the parent div a flex with display: flex
hoping it would just work. But while it make it alongside it messed up the sizing of the first div.
Can someone help tell me what i'm doing wrong please?
I have a codepen example here http://codepen.io/anon/pen/grxRza
.maxWidth {
width: 100%;
max-width: 1370px;
margin: 60px auto;
padding: 0 20px;
}
.card-columns {
column-count: 5;
}
.intermission {
color: blue;
column-span: all;
border: 2px solid;
}
.card-custom {
border: 1px solid blue;
width: 430px;
height: 220px;
}
<!-- intermission column span full -->
<div class="intermission">
<div class="card-custom">
</div>
<div class="card-columns">
<div class="card">
<div class="card-block">
<h4 class="card-title">Card title that wraps to a new line</h4>
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
<div class="card">
<div class="card-block">
<h4 class="card-title">Card title that wraps to a new line</h4>
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
<div class="card">
<div class="card-block">
<h4 class="card-title">Card title that wraps to a new line</h4>
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</div><!-- end intermission card-columns -->
</div><!-- end intermission div-->