M
M
Melante2017-10-04 08:45:47
Lightbox
Melante, 2017-10-04 08:45:47

Resizing opening images in Lightbox?

How to change the size of opening images in Lightbox so that it is the same. I will make the sizes initially the same, and the customer will no longer follow the sizes. I tried to load different sizes myself and as a result, everything is of different widths and heights.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-10-04
Semenov

What is Lightbox? if for bootstrap, then here ashleydw.github.io/lightbox if you display a lightbox, then the size itself is adjusted to the window.
Well and so that through css of course.
in the example above, it is something like this:
It is spelled hard in the div
Moreover, max-width: 530px changes depending on the size of the window
inside the div, the image has the following
But I think that you simply do not need to do anything if you use what is in the example.
If you missed something, see for yourself in more detail what is on the link.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question