Lloople
Lloople

Reputation: 1842

Bootstrap - Sidebar collapsable and fixed

I just followed this:

http://bootply.com/109746#

But I want to add affix to the sidebar for staying on place while scrolling on smartphone. I don't want the affix on big devices.

Upvotes: 0

Views: 1063

Answers (1)

Sender
Sender

Reputation: 6858

Add in position: fixed;top: 48px; in .nav ul tag but it must be add where mobile detect.

DEMO bootply re-size window and check.

Upvotes: 1

Related Questions