I
I
Ilaj Osmanov2017-01-07 00:26:51
css
Ilaj Osmanov, 2017-01-07 00:26:51

How to fix a lightbox bug?

Comrades, here I have a lightbox plugin that displays gallery elements. In the plugin's source code, I corrected the width of the image (otherwise the images are of high resolution and they open sooo small) and now they are compressed like this for me. What do you advise ?e13303e2962b41e39468cefd9a8da180.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
gleendo, 2017-01-07
@evgeniy8705

This is not the first time I am writing that the majority of people here are developers, and are more likely not psychics (I do not exclude that there are psychics who use their abilities in writing code), so find out what really happened and what is the mistake, by just one picture can not.
If all the same, psychics do not help you here in any way or you do not find a solution yourself, then I advise you to write a link to an interactive demo version, preferably in a code sandbox, codepen or jsfiddle. In this case, the chance that you will be helped will increase by an order of magnitude, ordinary mortal developers may be able to find a suitable solution for your problem for you.

A
Almaz Bisenbaev, 2017-01-07
@AlmazBisenbaev

Find out the class of the image in the lightbox and ask it:

width: auto!important;
height: auto!important;

Che in vain to fart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question