Home › Forums › CSS › Fixed Header that isn’t overlapped by scrollbar? › Reply To: Fixed Header that isn’t overlapped by scrollbar?
December 8, 2017 at 4:09 am
#263579
[email protected]
Participant
YES! you can do this.
use below attributes in respective classes:
for main page class give {overflow:hidden;}
for content area class(other then header section) give {overflow-y:scroll;height:calc(100vh – 80px);}
here 80px is: I assumed height of your header, also if you want your footer to be fixed you can subtract that value from 100vh