Z
Z
Zempik2016-01-22 20:04:12
css
Zempik, 2016-01-22 20:04:12

How are responsive images on mobile devices?

Made a website with bootstrap. Everything looks perfect on the phone, but there is a problem with large images. How to adapt them to the screen? There are many pages with such large images, so a universal option is needed. Has anyone encountered such a problem?
This is an example of a site on mobile:
779fd1112ae646d2948c21fd0031f35d.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
Zempik, 2016-01-22
@Zempik

Everything. Issue resolved. Added to styles:

img {
  display: inline-block;
  height: auto;
  max-width: 100%; 
}

C
codemix, 2016-01-22
@codemix

class="img-responsive" tried?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question