Jump to content
Sign in to follow this  
sgendry

css to replace home link with icon

Recommended Posts

sgendry

What am I missing? I am trying to replace the "home" link in the main navigation with an icon. Here is my css code: #menu-item-4940 { text-indent: -9999px; width: 40px; } #menu-item-4940 a { background: #71c340 url(/images/homeic.jpg) top center no-repeat !important; } #menu-item-4940 a:hover { background: #71c340 url(/images/homeich.jpg) top center no-repeat !important; } The icon does display, but not on hover + the text still shows as well. Any suggestion you may have are most welcome!

Share this post


Link to post
Share on other sites
Jenny
Check this topic to see if it helps: http://www.pagelines.com/forum/discussion/16222/common-questions-and-customizations#Item_2

Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
sgendry
I appreciate your help. It helped me indirectly. The code suggested did not work, but all I had to do was replace my menu text "home" with Sometimes it's just too obvious...

Share this post


Link to post
Share on other sites
Jenny
No problem :) That code is for iBlogPro5 but you had enough code already, I figured all you needed was the menu hint. If you consider this topic resolved, please "accept" an answer. Thanks!

Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×