JSFiddle - React, Tailwind, and code Playground

by Hayk Aghabekyan

HTML

<div class="offer-container">
    
    <div class="offer offer250">
        aa
    </div>
    <div class="offer offer100">
        aa
    </div>
    <div class="offer offer75">
        aa
    </div>
    <div class="offer offer50">
        aaa
    </div>
    <div class="clear"></div>
</div>

CSS

.clear {
    clear: both;
}

.offfer-container {
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.offer {
    width: 50%;
    height: 50px;
    float: left;
    position: relative;
}

.offer250:after, .offer75:after {
    content: "";
    height: 90%;
    position: absolute;
    right: 0;
    top: 5%;
    border-right: 1px solid black;
}

.offer250:before, .offer100:before {
    content: "";
    width: 90%;
    position: absolute;
    right: 5%;
    bottom: 0;
    border-bottom: 1px solid black;
}