0
I’m creating a website mobile with design responsive.
Within a div
have a slideshow which shows 300x300 images, I need to make this slideshow responsive without touching the attributes width
and height
of it. The code is more or less this:
<div id="div-de-fora">
<div id="div-do-slideshow">
[elementos do slideshow]
</div>
</div>
//css
#div-do-slideshow{
width:300px;
}
#div-de-fora{
?????
}
Mess with the width
of #div-do-slidshow
is not possible, since it uses the attribute left
to exchange images.
It is possible to change the display of slideshow using only CSS, parameters, etc. No #div-de-fora
?
I’ve tried to use iframe
and Flexbox but did not succeed.
In this project I am not using jQuery, the solution should use only pure HTML, CSS and Javascript.
Besides the
viewport
, it is good to put a CSS element like this:* { max-width: 100%; }
that will ensure that none element exceeds parent element size.– LipESprY
viewport
is a hand in glove kkk, but really has to change thepx
for%
– Mandrake Venom