Any freecodecamper in the house ? I need help with my project on build a technical documentation Page user story #14 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Any freecodecamper in the house ? I need help with my project on build a technical documentation Page user story #14

User Story #14: On regular sized devices (laptops, desktops), the element with id="navbar" should be shown on the left side of the screen and should always be visible to the user. Here's my code below for that story. #navbar{ Position: fixed; Top: 0px; Left: 0px; Height: 100%; Width: 300px; Padding: 10px 0; }

22nd Mar 2022, 9:03 AM
Otokini
1 Answer
0
Use position: sticky; it will make your content fixed to top(fixed), but when user scroll it will follow screen(be always visible to user), probably this is what is asked for.
27th Mar 2022, 12:37 AM
PanicS
PanicS - avatar