Panneau N0C 04 EN 250 250
Get 15% discount on our partner PlanetHoster with the code PHA-ceikay

Images Size (and maybe Bootstrap?)

More
10 years 10 months ago #32348 by mberman14
Hi,

I had a weird problem today. When I woke up this morning, the images in the articles on my site had shrunk down to postage stamp size. I had not changed anything since yesterday.

I tracked it down to a line in the Bootstrap.css file in the template -- starting at line 50, it has:
Code:
img { max-width: 100%; width: auto \9; height: auto; vertical-align: middle; border: 0; -ms-interpolation-mode: bicubic; }

I changed the max-width to auto, and everything worked again. But, since I don't really know what I'm messing with there, or what effect it might have elsewhere on the site, I'd love to know what happened and why it spontaneously changed overnight. Any ideas?

Thanks,
Matt

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32349 by ced1870
Hi
this is strange
Could you give me your url to check this
CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32350 by mberman14
Wow, you are fast!

The page I noticed it on is here:

www.nuevaschool.org/academics/upper-school/physical-education

It is fixed now, but all the pics on the right were tiny this morning.

Thanks,

Matt

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32351 by ced1870
strange. I tried with Firebug and the max-width:100% has no bad effect on the images

I have to go now, contact me again in 5 hours or tomorrow to make a test

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32352 by mberman14
Yes, it was fine in Firefox, but had the problem in Safari and Chrome. Sorry, I should have mentioned that.

Thanks,
Matt

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32355 by ced1870

Sorry, I should have mentioned that.

hum... yes

I see now the problem. This is because your elements are in a table, this is not made to be responsive.

I think that your problem were allways there ;)

"max-width:auto" does not exists, this is not a correct css property. This is like if you had removed this line

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.206 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 578 guests and one member online