jay
jay

Reputation: 43

hide <a> text with css

I want to hide the "HOME" text and replace it with an image on my wordpress menu. I am using the following css code right now:

li#menu-item-63 a {
background: url(/images/home.png) top center no-repeat;
width: 24px;
height:24px;
float: left;
text-ident: -9999px;
overflow: hidden;
text-decoration: none;
}

With the code above the image appears but the HOME text is still there. Thanks

Upvotes: 1

Views: 2394

Answers (3)

gutierrezalex
gutierrezalex

Reputation: 828

text-indent, not text-ident.

And display: block

Upvotes: 0

Ryan
Ryan

Reputation: 28217

You could add

color: transparent;

to your style. Will hide the text.

Upvotes: 1

amosrivera
amosrivera

Reputation: 26514

text-ident: -9999px; 

should be

text-indent: -9999px;

Upvotes: 9

Related Questions