ljubica Posted March 27, 2017 Share Posted March 27, 2017 (edited) Hi, I add a class="img-responsive" for images, but it isn't work. I tried it on one page only, here http://www.pennasol.rs/content/7-pennasol (you can see it in attachment). If anyone can help I would appreciate it. Edited April 6, 2017 by ljubica (see edit history) Link to comment Share on other sites More sharing options...
HanzCZ Posted March 29, 2017 Share Posted March 29, 2017 Hi, I think you need to insert your image into div with responsive classes- something like this: <div class="your responsive classes"><your image class="img-responsive"></div> Image should be responsive according to the responsive width of his parent div. Link to comment Share on other sites More sharing options...
Angar Posted March 30, 2017 Share Posted March 30, 2017 (edited) Try adding css to your theme: body#cms img { max-width: 100%; height: auto; } Edited March 30, 2017 by Angar (see edit history) Link to comment Share on other sites More sharing options...
ljubica Posted April 5, 2017 Author Share Posted April 5, 2017 (edited) I've finally found a solution... in <img> tag instead of "width="1052" height="536" I put "width=100%". And now everything is working well. Images are responsive. I suppose everyone knows this is a temporary solution .. I hope that someone will find a better solution. Edited April 6, 2017 by ljubica (see edit history) 4 1 Link to comment Share on other sites More sharing options...
ljubica Posted April 6, 2017 Author Share Posted April 6, 2017 Try adding css to your theme: body#cms img { max-width: 100%; height: auto; } Alredy have .cms-box img{max-width:100%} in global css. .page-content.page-cms{background:#fff;padding:1.25rem;text-align:justify}.page-content.page-cms .cms-box img{max-width:100%}@media (max-width:991px){#block-cmsinfo{padding:1.25rem 1.875rem[spam-filter] I noticed something else. Each time I insert an <img> it appears between <p> </ p>. Is this normal? Link to comment Share on other sites More sharing options...
sandrine12345 Posted February 6, 2021 Share Posted February 6, 2021 On 4/5/2017 at 9:48 PM, ljubica said: I've finally found a solution... in <img> tag instead of "width="1052" height="536" I put "width=100%". And now everything is working well. Images are responsive. I suppose everyone knows this is a temporary solution .. I hope that someone will find a better solution. Thank you so much, it works! 1 Link to comment Share on other sites More sharing options...
Alexander Firsov Posted August 11, 2022 Share Posted August 11, 2022 On 4/6/2017 at 2:48 AM, ljubica said: I've finally found a solution... in <img> tag instead of "width="1052" height="536" I put "width=100%". And now everything is working well. Images are responsive. I suppose everyone knows this is a temporary solution .. I hope that someone will find a better solution. Yes, it does work like a charm! Thank you. Link to comment Share on other sites More sharing options...
calgaryx Posted November 17, 2024 Share Posted November 17, 2024 On 4/5/2017 at 1:48 PM, ljubica said: I've finally found a solution... in <img> tag instead of "width="1052" height="536" I put "width=100%". And now everything is working well. Images are responsive. I suppose everyone knows this is a temporary solution .. I hope that someone will find a better solution. Yes, it worked. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now