image size in category view

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Apr 24, 2013 3:49 pm
Reply with quote
Report this post
Hello,

Noticed that the image resize dosn't works in other browsers, works fine just in Chrome!
Please see here:
Code: Select all
http://www.islamic-relief.se/converting/svenska/jupgrade/kampanjer

Thanks
User avatar
Junior Boarder

teitbite
Thu Apr 25, 2013 9:09 am
Reply with quote
Report this post
Hi

Image size functionality was removed to maintain responsive functionality. You can bring it back by adding width to css using class like this:

Code: Select all
section img {
    width: 200px;
}
User avatar
Moderator

GK User
Thu Apr 25, 2013 11:07 am
Reply with quote
Report this post
Thanks for your reply,
I added:
Code: Select all
   max-width: 601px !important;


Instead of "width" to avoid stretch small images!
User avatar
Junior Boarder

teitbite
Thu Apr 25, 2013 1:10 pm
Reply with quote
Report this post
Hi

Is it working?

You already have max-width: 100% which should stop resizing over image actual size.
User avatar
Moderator

GK User
Thu Apr 25, 2013 1:25 pm
Reply with quote
Report this post
Hi,

Yes, it's works fine, I replaced "max-width: 100%" with "max-width: 601px !important"
And now the images is presented as normal and max 601px.

Because if we add for example:
Code: Select all
section img {
    width: 200px;
}

The logo will be effected! and maybe other images in the sections pages.
User avatar
Junior Boarder

teitbite
Fri Apr 26, 2013 9:02 am
Reply with quote
Report this post
Hi

To not affect logo You may use a more detailed selector as:

Code: Select all
section .itemIntroText img {
}


This way only article images will be affected.
User avatar
Moderator

GK User
Fri Apr 26, 2013 9:13 am
Reply with quote
Report this post
Hi, Many thanks for your flow up.
But if I add fixed width, it will effect even small images, sometimes we have news to publish with lower image quality and small in size!

I think that "max-width: 601px !important" should limit just big images be bigger than 601px, not small images.
I need it just to limit the size of all old articles, because we just converted to J3. And changed the template :)
User avatar
Junior Boarder

teitbite
Fri Apr 26, 2013 10:45 am
Reply with quote
Report this post
Hi

I do not mean a fixed width. Just a more accurate selector to point at article images only.
User avatar
Moderator

GK User
Fri Apr 26, 2013 10:52 am
Reply with quote
Report this post
Hi again,

Okey, thank you. It's works fine now. Many thanks for help and flowing up.
Ha a nice day :)
User avatar
Junior Boarder


cron