0

How to place a logo on top of the navigation bar. But on scroll the navigation bar should overlap the log and be placed on top??

just like the w3schools.com website. on scroll the nav bar should overlap the logo and must be placed on top of everything.

15th Oct 2017, 4:52 AM
Hari D
Hari D - avatar
2 Respostas
- 1
You could look at setting the z index of the nav higher than the logo in CSS.
15th Oct 2017, 8:21 AM
Dark Angel
Dark Angel - avatar
- 2
Sorry guys you are wrong. Just use position:sticky; top:0; to bring nav bar on top when you scroll.
15th Oct 2017, 12:05 PM
Hari D
Hari D - avatar