<div class="div></div> .div { position: relative; } .div::after { content: ""; position: absolute; left: 30px; bottom: 0; right: 0; width: 720px; height: 1px; background-color: red; }