.basic-info{ position: relative; font-size: 16px; margin-bottom: 20px; padding:5px 25px; border-bottom: 1px solid #eee; &::before{ position: absolute; top:8px; left:0; content: ""; display: block; width: 5px; height: 20px; background-color: #0079fe; } } .first-card,.second-card{ color: #fff; padding:15px 120px; border-radius: 10px; } .first-card{ background-color: #e9df1e; } .second-card{ background-color: #d62f28; }