Answers for "css keep div fixed position"

2

relative position div is overlapping fixed or sticky header

.nav-bar{
    position:sticky;
    top:0px;
    font-family: Arial, Helvetica, sans-serif;
    border-bottom:solid rgb(179, 173, 173) 1px;
    background-color: rgb(255, 255, 255);
    z-index: 1
}
Posted by: Guest on July-01-2021

Browse Popular Code Answers by Language