Override.css vs Custom CSS Code in Adv Settings

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Jul 11, 2014 9:13 am
Hi,

I have had this problem for a while and can´t find out why.

For all the CSS overrides I make, I would like to use the override.css file instead of the custom CSS code in Adv Settings (under template). It is easier to handle and gives a better overview I think.

But I have the problem, that not all overrides I make, works in the override.css file!
Here is an example:

#gkLogo img {
height: auto!important;
width: 225px!important;
}

#gkLogoSmall img {
height: auto!important;
width: 135px!important;
}


The above code is not working when I put it in override.css, but putting it in Custom CSS Code works right away!
I have other overrides in override.css that works without any problems!

So what is it I am missing here?
It seems there is something about override.css and Custom CSS Code I don´t understand 100%.

Can someone please help me put?

Regards
User avatar
Senior Boarder

GK User
Fri Jul 11, 2014 10:25 am
The only thing that might corrupt override.css is an error in one of the declarations.
Could you please post an url to your site and leave there override.css that doesn't work well?
User avatar
Moderator

GK User
Sat Jul 12, 2014 11:24 am
Hi,

Url is: eyereports.com

The code I have mentioned below is placed in override.css and should help fix the placement of the logo.
I got the code from Dziudek and it works perfect when put in Custom CSS Code.
User avatar
Senior Boarder

GK User
Sun Jul 13, 2014 10:56 am
It works fine on my browser. The logo is being scaled down - even without the !important part. Perhaps your browser is caching the files - please try Chrome incognito or Firefox private mode to test.
User avatar
Moderator

GK User
Mon Jul 14, 2014 1:12 pm
You are right! That was the problem.
Stupid mistake. Sorry for wasting your time!

Cheers,
User avatar
Senior Boarder

GK User
Mon Jul 14, 2014 2:01 pm
No problem. I'm glad I could help to find the source of the problem :)
User avatar
Moderator


cron