There is a data plate. On the left, I want to make the menu for managing this tablet - add / delete / edit. If there is a lot of data in the tablet, naturally, it scrolls, but the menu should still be in place.

How to impose?

  • position: fixed; or JS - Alex

1 answer 1

there is a fixed CSS property. Use it. Something like this:

 <div class="menu" style="position: fixed; margin:10px;"> содержание меню </div> <table> ваша табличка </table> 

  • If navbar-fixed-top, can I make a vertical menu to the left of the plate? - sitev_ru
  • missed the word "left". thanks for the correction - nueq
  • use the above code to resolve the issue - nueq
  • I thought it’s harder to get the whole page scrolling ... Suppose the page is large ... The table with the menu at the bottom is not visible. Now scroll up, both the table and the menu appear ... As soon as the tablet goes beyond the upper limit of the screen, the menu stops and waits ... as the menu has reached the bottom of the table - it also leaves with the table ... - sitev_ru
  • that is, you need what it would all be in a separate block? and menu and tablet? - nueq