The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Hover over image on category

2 posters

Go down

In progress Hover over image on category

Post by Rupture December 7th 2013, 7:27 am

What is the CSS code to put a picture when someone hovers over the categorys on the forums?

PHPBB3
Rupture
Rupture
Forumember

Male Posts : 329
Reputation : 6
Language : English, Español, Deutsch, Catalá
Location : Earth

http://raptorgaming.forumotion.com

Back to top Go down

In progress Re: Hover over image on category

Post by Sanket December 7th 2013, 8:15 am

I think this should work.

Add this when you create a category
Code:
<div class="abc">
       Category 1</div>
Add this to your css.

Code:
.abc a img:hover {
    background:url(http://xyz.com/img);
    position:absolute;
    top:0px;
}
Change the position according to what you want.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum