• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

creating a responsive sidebar

 
Ranch Hand
Posts: 658
2
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am developing a website using bootstrap. The requirement was that the menu should be fix on the top even if we scroll down the page. I fullfilled it using bootstrap's navbar class. But now the requirement is a fixed sidebar as well. Even if we scroll down the page, sidebar must retain its possition irrespective of the center content page.
The website should be like w3schools
It has a fixed navigation bar at top and a sidebar in left which is not dependent on center content.

Screen-Shot-2017-04-26-at-1.25.58-AM.png
[Thumbnail for Screen-Shot-2017-04-26-at-1.25.58-AM.png]
 
Ranch Hand
Posts: 595
6
jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The logic for this one would be to have a div with fixed position and then use javascript to update top position as the page is scrolled.

Found this link in one of the forums: example discussed in thread forum topic.

You can always understand this logic and make your own version of implementation using css, javascript, jquery or bootstrap
 
I think she's lovely. It's this tiny ad that called her crazy:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic