flexbox 4 items

by Andres Cisneros

HTML

<div class="flex-container">
    <div class="flex-item-one">flex item 1</div>
    <div class="flex-item-three">flex item 3</div>
    <div class="flex-item-two">flex item 2</div>
    <div class="flex-item-four">flex item 4</div>
</div>

CSS

.flex-container {
    justify-content: space-between;
    align-content: flex-end;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 320px;
    height: 150px;
    background-color: Silver;
}

.flex-item-one {
    background-color: DeepSkyBlue;
    width: 180px;
    height: 50px;
    margin: 5px;
}

.flex-item-two {
    background-color: #EE8FFF;
    width: 180px;
    height: 30px;
    margin: 5px;
}


.flex-item-three {
    background-color: #FFC119;
    width: 70px;
    height: 40px;
    margin-bottom: 1px;
    margin-top: 2px;
    margin-right: 5px;
    margin-left: 20px;

}

.flex-item-four {
    background-color: #14cc93;
    width: 70px;
    height: 40px;
    margin-bottom: 20px;
    margin-top: 1px;
    margin-right: 5px;
    margin-left: 20px;
}