3
I have the following structure:
<div class="bg">
<img src="view/img/planta-supermercado.png" id="bg">
<div class="bg-scroll" id="bg-scroll">
<img src="view/img/planta-supermercado.png" id="bg-mobile">
</div>
</div>
when you open the page on mobile, it loads the div with the id bg-scroll
what I need is for the image to be 100% in height and proportional in width (the width is greater than the height)... and for that to happen I must create a horizontal scroll only in the image (or in the div bg-scroll
) so that the user can see the whole image.
Thank you!
I had put wrong in the publication, that’s exactly what I need, but the bar is horizontal, sorry.
– Otavio Souza Rocha
Now the scroll horizontal is right, but I want the image to be 100% high, and the width to be the necessary size so as not to lose the ratio
– Otavio Souza Rocha
as the image is wider, the bar would appear that way you did, just horizontally
– Otavio Souza Rocha
@Otaviosouzarocha gave an edited again, look there if now it was right
– hugocsl
That’s right, once again, thank you!!!
– Otavio Souza Rocha
@Otaviosouzarocha tmj young [] s
– hugocsl