When there is little content, then everything is fine, but when there is a lot of it, more than the height of the menu, then there will be free space under the menu, which will not be filled.

The menu with the class .col-md-3 , and the content .col-md-9 , what can I do?

example

1 answer 1

And to prescribe, depending on the height, the class col-md-9 || col-md-12?

  • Sorry, but I did not understand you - jashka
  • Calculate the height of the scrolled area of ​​window.pageYOffset. And if the height is higher than for example 800px (we take into account the header from the menu), then hide the menu, and the content addClass ('col-md-12') is Alexandr Malyita