Pregunta

Is there any way to make a section in html that would always be shown as "on top"? Kinda like a menu bar, just to give an idea of what would that mean, but applied to a whole section. In my particular case, I have a html divided mainly in two sections: the upper with a list, and this should be scrollable, and the lower one with a couple of buttons, but this one should always be seen by the user, because he/she might want to click one of the buttons without scrolling down(perhaps quite a lot) to get to the buttons.

¿Fue útil?

Solución

You can use position: fixed to fix an element relative to the browser window. This would give you your desired effect.

Otros consejos

you can try :

 postion:fixed;
 display: block; 
 top: 0px;
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top