Jump to content

CMS Responsive Images


ljubica

Recommended Posts

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

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 by ljubica (see edit history)
  • Like 4
  • Thanks 1
Link to comment
Share on other sites

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

  • 3 years later...
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! 

  • Thanks 1
Link to comment
Share on other sites

  • 1 year later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...