Avatar of jackjohnson44
jackjohnson44
 asked on

css hide a links text

I am trying to display an image and hide the text of a link.  I can display the image, and even get rid of the text underline, but I can't get rid of the text.

.collapsed, .collapsed a  {
    background: transparent url('/Style Library/maximize_gray_small.png') no-repeat scroll center left !important;
      padding:2px 6px 2px 25px !important;
    text-indent: -1999px;
    text-decoration:none;
}
CSSHTML

Avatar of undefined
Last Comment
Chris Stanyon

8/22/2022 - Mon
LZ1

Maybe your CSS is wrong.

Try this:

.collapsed, a.collapsed  {

Open in new window


If that doesn't help, please post a live URL or your HTML/CSS rendered page so we can debug further
jamesrh

The only text-indent value that I have seen for this technique is -9999px rather than the one you have which is -1999px.   For most resolutions this shouldn't matter, but...
jackjohnson44

ASKER
Thanks, but neither of those worked.  I can't send a public url because there is none.  I do have a screen shot with the page, and the html code and css thanks to firebug.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
LZ1

Show us the URL.
jackjohnson44

ASKER
It is a test site on a development box.  It isn't on the internet.
LZ1

Sorry, I misread.  Please post your HTML/CSS code
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SOLUTION
Jagadishwor Dulal

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.