+ 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; }
1 Resposta
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.