CSS Move text out of the way, but not the background image
-
Hello!
It shouldn’t be this hard but I can’t seem to get it right. I have a plugin which displays a user’s bookmarked post in a list. After the name of post it says ‘delete’. The plugin comes with a handy custom CSS area which will let you edit just that ‘delete’ link.
Now, what I want is remove the ‘delete’ link all together, and replace is with an image, a red X.
Here’s what I’ve got:
#bookmark-list a.upb_del_bookmark { display: inline-block; text-indent: -999px; background-image: url('https://www.cookingblondes.nl/wp-content/uploads/2012/09/X-delete.png'); background-repeat: no-repeat; }
I moved the text off screen, but now the background image is gone as well! I tried adding background position but that didn’t work. I’m out of ideas. Ugh…
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘CSS Move text out of the way, but not the background image’ is closed to new replies.