Images non repsonsive on Mobile

Hello everyone,
I’m wondering if someone can help me with the following problem I have.
I have nearly made up a site for a client -- http://www.crowsonthewire.co

The problem I am having is how to make the site images responsive for mobile layout as they cut off in the About Us and Project Background sections of the site. I am wondering if anyone has any insight into how I would fix this problem whether that be image specific or for all of them.

I also am seeing that the table I have made for Performance Tours cuts out about two thirds of the images and text. I am aware now that tables are not responsive but has anyone any work arounds that would give the same affect whilst making all the article pieces viewable?

Thank you!

13 answers

pavit 0.00 $tone October 30, 2013
Public

Hi

To have resized images adapting to the various screen size you don’t need to add height and width in the html code of the article " about us " i noticed you have pasted in the code a word document with all the code taken from it

This is the code you used for the image

Code:

<p><img class="size-auto" src="images/mezzanine3.jpg" alt="mezzanine3" width="1045" height="431" /><span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"></span></p>

same thing for the table code you added

#1
sling19 0.00 $tone October 30, 2013
Public

Hi, same problem here.

when i drag the desktop dimension to mobile dimension. image not resized.
i try to put as intro image, full text image or just insert it in joomla article. No luck.

#2
shawhir 0.00 $tone October 30, 2013
Public

Hey pavit -- I tried cleaning up that code -- I took out the height and width there and now the code is as follows --

</span></p>
<p><img class="size-auto" src="images/mezzanine3.jpg" alt="mezzanine3"></span></p>

Yet it still does not fix the problem. I have tried it on a nexus and yes it works landscape -- but in portrait it cuts it off -- and it cuts nearly all of it off on a mobile phone.

#3
Profile photo of Ninja Lead 0.00 $tone October 30, 2013
Public

You can try to do with my solution as below

Open templates/ja_university/css/layout-mobile.css file

Add new script

Code:

#ja-mainbody img {
     max-width: 100% !important;
}

Remember to clear cache from Admin area after making changes

#4
baloe98 0.00 $tone November 4, 2013
Public

When I do this then the width is oke but the height of the pictures is the same as the original pictures (not proportional). Can i fix this?

#8
Profile photo of Ninja Lead 0.00 $tone November 5, 2013
Public

When I do this then the width is oke but the height of the pictures is the same as the original pictures (not proportional). Can i fix this?

The images in content of About Us and Project Background menu are showing with original image(width and height are original ).

I’m confused with your comment that they are (not proportional), maybe you need to upload other images to see the difference.

#9
Profile photo of John Brett 0.00 $tone November 7, 2013
Public

The images still have height and width attributes attached.

Code:

<img width="800" height="1132" src="/images/content/veghellacht/140410-VEGHEL_LACHT-POSTERA4.jpg" alt="140410-VEGHEL LACHT-POSTERA4" style="margin-right: 8px; margin-bottom: 8px; border: 1px solid #9a3b34">

Until you delete them…

Code:

<img src="/images/content/veghellacht/140410-VEGHEL_LACHT-POSTERA4.jpg" alt="140410-VEGHEL LACHT-POSTERA4" style="margin-right: 8px; margin-bottom: 8px; border: 1px solid #9a3b34">

… you’re going to get a squeeze-boxed image.
As long as you have image attributes, the template is going to try its darndest to try and pull it off…with bad results.

Having NO attributes allows the template to proportionally resize the image.

Have fun!

#11
Profile photo of John Brett 0.00 $tone November 7, 2013
Public

I tried cleaning up that code -- I took out the height and width there and now the code is as follows --

Code:

</span></p>
<p><img class="size-auto" src="images/mezzanine3.jpg" alt="mezzanine3"></span></p>

Yet it still does not fix the problem. I have tried it on a nexus and yes it works landscape -- but in portrait it cuts it off -- and it cuts nearly all of it off on a mobile phone.

The class="size-auto" is still considered an image attribute. Just get rid of it and let the template’s freak fly and you should be good!

Code:

</span></p>
<p><img src="images/mezzanine3.jpg" alt="mezzanine3"></span></p>
#12
baloe98 0.00 $tone November 8, 2013
Public

Thank you jwbrett ! That’s the solution..

Open templates/ja_university/css/layout-mobile.css file
Add new script

#ja-mainbody img {
max-width: 100% !important;
}

Delete the height and width attribute in the code of the article:
<img width="800" height="1132" src="/images/….
<img src="/images/….

#13

This question is now closed

Written By

Comments