M
M
McMike2018-10-16 09:59:22
Bootstrap
McMike, 2018-10-16 09:59:22

How to set positioning for bootstrap modal window?

I display the dialog on the page, but it is always at the top. If you scroll down the page, then the dialog is above the scope.
How can I force it to be at a certain height, regardless of how much the screen scrolls?
I know there are different positioning options, but just setting them on a div element results in the same result.
How to set it correctly? Probably some configs should be specified when creating a window... I
open the dialog with .modal('show')

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
iBird Rose, 2018-10-16
@iiiBird

Well, according to the description, you have a jamb with styles somewhere. The default bootstrap modal works the way you want. for some reason your fixed block is not fixed. upload the code to the sandbox.

D
Dies Irae, 2018-10-16
@YumeReaver

Yes, this is how it should work by default. Do you have modal not in iFrame-e?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question