How to use CSS position sticky to keep a sidebar visible with Bootstrap 4

前端 未结 4 470
醉酒成梦
醉酒成梦 2020-12-03 08:47

I have a two columns layout like this:

 
4条回答
  •  一整个雨季
    2020-12-03 08:51

    In the stable Bootstrap 4.0.0 release, this is done using the sticky-top class...

    Demo

    Content

    Sticky menu

    ...

    This works even in the height of the header/navbar, content, and footer are dynamic/unknown.

    https://www.codeply.com/go/QJogUAHIyg

提交回复
热议问题