How can I have a sticky side nav with sticky header at the same time. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I have a sticky side nav with sticky header at the same time.

<header >:sticky to the top. <nav>: sticky to the header on left hand side. <main> scroll with the body <footer> same with main.

30th Sep 2019, 8:12 AM
Enyi Udoka
1 Answer
+ 1
use position: fixed; on both of them
30th Sep 2019, 9:02 AM
Taste
Taste - avatar