Key Feature, no color

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 10, 2013 4:31 pm
Reply with quote
Report this post
hi,

I add some new images and the color of image no appears on mouse hover

I add in css style1:
.gkWine > span { background-image: url('../images/style1/gk_wine.png'); }
.gkWine:hover > span { background-image: url('../images/style1/gk_wine.png'); }

and module custom html:
<div class="gkFeatures gkPerspective"><a class="gkWine" href="#" data-animation="flip" data-delay="0"><span>Wine</span>Wine Emotions - 6 Days</a>

and put the image gk_wine.png in ...images/style1

if I change one of the original images the color is ok. What is the problem?
User avatar
Fresh Boarder

GK User
Mon Jun 10, 2013 5:57 pm
Reply with quote
Report this post
Could You post an url to your site?
User avatar
Moderator

GK User
Mon Jun 10, 2013 9:51 pm
Reply with quote
Report this post
is possible send pm? site is offline
User avatar
Fresh Boarder

GK User
Tue Jun 11, 2013 7:33 am
Reply with quote
Report this post
Yes, please send me a PM wit hlink to site (login and passwd) and link to this thread.
User avatar
Moderator

GK User
Mon Jun 17, 2013 9:56 am
Reply with quote
Report this post
Ok, now I see exactly what You mean :).
The problem is with hover effect - orange background do change, but circled image stays in grayscale instead of color.
I see You have added this style:
Code: Select all
.gkNos:hover > span {
background-image: url('../images/style1/gk_nos.png');
}

to style1.css, but I would suggest to use override.css instead (if You will ever want to upgrade template, then You will need to backup only override.css).
The problem is, that You have forgot about moving hovered "sprite" image to bottom. As You cant do it with background-image, the better solution would be to use:
Code: Select all
.gkNos:hover > span {
background: transparent url('../images/style1/gk_nos.png') 0 100% no-repeat;
}

and this will work for homepage.

With subpage problem is exact. Change:
Code: Select all
.gkWine:hover > span {
background-image: url('../images/style1/gk_wine.png');
}


to

Code: Select all
.gkWine:hover > span {
background: transparent url('../images/style1/gk_wine.png') 0 bottom no-repeat;
}

for first element, and same change to other - and it will work.
User avatar
Moderator


cron