section img {} in Joomla.css

October 2012 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
Mon Jun 22, 2015 5:24 pm
Reply with quote
Report this post
Initially, I've found this with gk_events template on another site of mine, fixed it, but now I found same issue with Startup, so, it seems to have to do with other templates too, so, decided to ask you on this matter.
Using Simple Image Gallery PRO by JoomlaWorks. Pictures misfit the blocks laid out for it, so asked JoomlaWorks for assistance, here's the quote from my ticket to them (on Events template, but applies here too):
My ticket:
Pictures don't fit on the frames drawn by the component. So the gallery is there and does work, but untill I call for a pop-up, it looks clamsy. How do I fix it? Thanks
Link to page is http://episkop.info/speakers/item/328-milongo
Joomla 3.4.1 and SIGPRO is 3.0.7
Seems to be everything up to date...


Their answer:
Hi,
The issue is caused by your site's CSS. File http://episkop.info/templates/gk_events/css/joomla.css around line 181:
section img {
height: auto!important;
max-width: 100%!important
}

Just remove the important keyword so it looks like:
section img {
height: auto;
max-width: 100%;
}

So, on the site mentioned in that ticket, I've simply removed !important from that css.
Now installed SIGPRO to site with Startup template and see exactly same thing:
http://fitness7vetrov.ru/akcii/140-nash-klub-otmetil-trjokhletie-i-zavershenie-marafona-pokhudeniya-2015-vyezdom-na-akhtubu-foto-i-videootchjot

If I remove that !important flag from same place in joomla.css - it works out. But I just wonder, if you put it in such a way in all your templates, means there's a reason to it and by removing it from code, I might've ruin something somewhere else in template. So, the question is "Is it safe to remove that flag from that place in joomla.css and if not, is there any other way to make sure that in galleries it is not applied?"
Thanks.
User avatar
Platinum Boarder

GK User
Mon Jun 22, 2015 5:31 pm
Reply with quote
Report this post
Hello,

We will analyze this issue and if it will be safe - we will remove the important flags from these CSS properties.
User avatar
Administrator

GK User
Tue Jun 23, 2015 7:54 am
Reply with quote
Report this post
dziudek wrote:Hello,

We will analyze this issue and if it will be safe - we will remove the important flags from these CSS properties.


Thank you, dziudek, just let me know so I may do the same to fix it without upgrading the template.
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.