change size picture in K2 categories

February 2014 Joomla Template
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
Tue Nov 25, 2014 11:21 pm
Reply with quote
Report this post
Hi! I have K2 categories with 4 article and in "Item view options in category listings" picture very big. Size may change in:

section img {
height: auto!important;
max-width: 100%!important;

But if i change it in : /templates/gk_news2/css/joomla.css - changed pictures in each module. How change size picture only in this K2 categories?

URL:http://239703.hoster-test.ru/index.php/zhurnaly
User avatar
Junior Boarder

GK User
Thu Nov 27, 2014 11:22 am
Reply with quote
Report this post
Hello,

I suggest to add a page suffix for the menu item with this category - in the template settings under the features tab, you can specify a page suffix for a specific menu item. And then you can prepare a custom CSS code prefixed with your page suffix like:

Code: Select all
.MYSUFFIX section img {
...
}
User avatar
Administrator

GK User
Mon Dec 01, 2014 3:32 pm
Reply with quote
Report this post
I find it settimgs, but I did something wrong. I write suffix and id ( screnshot). Maybe something make even?
User avatar
Junior Boarder

GK User
Mon Dec 01, 2014 5:09 pm
Reply with quote
Report this post
You have to put only the name of the suffix class like: MYSUFFIX, the code which I've provided you should put in the template settings -> advanced settings tab -> custom CSS code option.
User avatar
Administrator

GK User
Fri Dec 05, 2014 3:30 pm
Reply with quote
Report this post
Yes, it works. But I can add one more suffix, for example, if I want to display the image in the middle of the block? What a custom code I'll have to add?
User avatar
Junior Boarder

GK User
Mon Dec 08, 2014 8:39 am
Reply with quote
Report this post
So in this case you have to create MYSUFFIX2 and add it as the previous one.
User avatar
Administrator

GK User
Mon Dec 08, 2014 6:49 pm
Reply with quote
Report this post
long thought of as a result of Contents - placed in one suffix:
.MYSUFFIX section img {
max-width: 55%!important;
display:block;
margin:0 auto;
}
Now in category everything ok! Thank you!
User avatar
Junior Boarder


cron