I'm trying to figure out how to display nicely a couple of DIVs next to an image without jumping below that image.
Here is an example: https://codepen.io/anon/pen/zgzXGr
code: code:
body
{
background-color:#000;
}
#shortspecs-section
{
margin:10px;
display:flex;
flex-flow:column wrap;
}
.shortspecs
{
background-color:#FFF;
border-radius:10px;
padding:15px;
margin:15px;
font-size: 1.3em;
}
.specs-small
{
max-height:60px;
}
@media only screen and (min-width: 1024px) and (max-width: 9999px)
{
#shortspecs-section
{
flex-flow:row wrap;
justify-content:flex-start;
}
}
<section id="shortspecs-section">
<div class="shortspecs specs-big">
<img src="https://static.mobilemultimedia.be/mmu/products/no-phone_300.jpg">
</div>
<div class="shortspecs specs-small">
<img src="https://static.mobilemultimedia.be/mmu/icons/battery.svg">
19999<br>
<span class="smallprint">TEST</span>
</div>
<div class="shortspecs specs-small">
<img src="https://static.mobilemultimedia.be/mmu/icons/battery.svg">
19999<br>
<span class="smallprint">TEST</span>
</div>
<div class="shortspecs specs-small">
<img src="https://static.mobilemultimedia.be/mmu/icons/battery.svg">
19999<br>
<span class="smallprint">TEST</span>
</div>
<div class="shortspecs specs-small">
<img align="left" src="https://static.mobilemultimedia.be/mmu/icons/battery.svg">
19999<br>
<span class="smallprint">TEST</span>
</div>
<div class="shortspecs specs-small">
<img src="https://static.mobilemultimedia.be/mmu/icons/battery.svg">
19999<br>
<span class="smallprint">TEST</span>
</div>
<div class="shortspecs specs-small">
<img src="https://static.mobilemultimedia.be/mmu/icons/battery.svg">
19999<br>
<span class="smallprint">TEST</span>
</div>
<div class="shortspecs specs-small">
<img src="https://static.mobilemultimedia.be/mmu/icons/battery.svg">
19999<br>
<span class="smallprint">TEST</span>
</div>
<div class="shortspecs specs-small">
<img src="https://static.mobilemultimedia.be/mmu/icons/battery.svg">
19999<br>
<span class="smallprint">TEST</span>
</div>
<div class="shortspecs specs-small">
<img src="https://static.mobilemultimedia.be/mmu/icons/battery.svg">
19999<br>
<span class="smallprint">TEST</span>
</div>
</section>
I would like the DIVs on the right to stack nicely next to the image instead of jumping immediately below the image. I have tried it with Flexbox and float but I haven't managed to display the divs correctly so far.
I'm sure there is a simple solution but I haven't found it yet.
Any idea?
Thanks