JSFiddle - React, Tailwind, and code Playground

by Craig Martin

HTML

<div class="wrapper">
<div class="vdiv" id="cam1">first div</div>
<div class="vdiv" id="cam2">second div</div>
<div class="vdiv" id="cam3">third div</div>
</div>

CSS

.wrapper {
    display: flex;
    flex-direction: compact;
}

#cam1 {
    background: yellow;
    /* just to give it some arbitrary height; 
    the height can be dynamic */
    order: 1;
}

#cam2 {
    background: cyan;
    /* just to give it some arbitrary height; 
    the height can be dynamic */
    order: 2;
}

#cam3 {
    background: red;
    /* just to give it some arbitrary height; 
    the height can be dynamic */
    order: 3;
}


.vdiv {
    width:150px;
    height: 50px;
    float: left;    
}

.vdiv:first-of-type {
    height: 100px;
    width: 50vw;
}
.vdiv:nth-child(2) {
    height: 50px;
    width:150px;
    float: none;    
    margin-right:10px;
}