+ 2

Please how can i make a sticky navigation bar

10th Dec 2021, 11:51 AM
Abdul-Haleem ✓✓
Abdul-Haleem ✓✓ - avatar
2 Respuestas
+ 1
In HTML:- <p class="sticky">Sticky<p> In CSS p.sticky { position:sticky; top:__px; Hope it works. (it's my 100th answer)
10th Dec 2021, 12:03 PM
𝓐𝓷𝓼𝓱𝓲𝓴𝓪 (Anshika)
𝓐𝓷𝓼𝓱𝓲𝓴𝓪 (Anshika) - avatar
0
You can also use fixed in place of sticky.
10th Dec 2021, 12:20 PM
𝓐𝓷𝓼𝓱𝓲𝓴𝓪 (Anshika)
𝓐𝓷𝓼𝓱𝓲𝓴𝓪 (Anshika) - avatar