0

I have buttons in my rails app's navbar which link to divs within the page. The links work fine but since I'm using a bootstrap navbar that stays anchored to the top, the navbar cuts off the top of the div. Right now my rails link to looks like this

li = link_to new_family_path(anchor: "testimonialsSection")
  span Testimonials

How I can edit this to take me 50 pixels before the testimonialsSection?

WoMo
  • 7,136
  • 2
  • 29
  • 36
Nick Gilbert
  • 4,159
  • 8
  • 43
  • 90
  • Does not Bootstrap explicitly tell us to add `padding-top: 70px;` or something to body tag when using a fixed navbar? – mzrnsh Jan 02 '17 at 10:54
  • Mind those big red alert boxes in the documentation when using bootstrap. http://getbootstrap.com/components/#navbar-fixed-top – mzrnsh Jan 02 '17 at 10:56

0 Answers0