Answers for "stick a div when scrolling under navbar"

CSS
1

css sticky navigatiojn

nav {
	position:sticky;
	top:0;
}

/*Top can be replaced with bottom, left, or right 
	depending on what you want :) */
Posted by: Guest on November-05-2020

Code answers related to "stick a div when scrolling under navbar"

Browse Popular Code Answers by Language