A
A
AhmedGasem2016-11-02 19:30:49
css
AhmedGasem, 2016-11-02 19:30:49

Is it possible to create a menu in bootstrap in which, when clicked, the page will scroll down?

f33dc54238024409942322ce784c4fb5.jpg
I want that when clicking on the menu items, the page goes down to the desired block.
88853528cfc54918ba06bfd6b7737a60.jpg
It seems there was a class in bootstrap that can allow this (I don’t own JS)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Lumore, 2016-11-02
@Lumore

getbootstrap.com/javascript/#scrollspy

<a href="#example">Example</a> // Ссылка
<div id="#example"></div> // Блок

S
sim3x, 2016-11-02
@sim3x

Do not own - do not take

Y
Yeldos Adetbekov, 2016-11-02
@dosya97

You need to raise the "Menu" block one tag higher, along with the button itself. And you most likely have them separated. Look at the nav-togle example (Collapse with a small display. Here it scrolls the data after itself)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question