Answers for "draw a line with pseudo elements"

0

draw a line with pseudo elements

<style>
.mydiv::before{
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    bottom: 1px;
    background-color: black;
}
</style>

<div class="mydiv">About us</div>
Posted by: Guest on September-22-2021

Browse Popular Code Answers by Language