Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
hide the text in a tag but still be able to click it?
Old 08-17-2009, 02:48 PM hide the text in a tag but still be able to click it?
Average Talker

Posts: 29
Name: Luke
Trades: 0
I have a tags within li tags like this:

Code:
 
<li class="equipment"><a  href="equipment/.../...">Hurricane</a></li>
Once CSS is applied, the text is centered below the li which is an image. I have top padding on the a tag extended upward over the image so that the entire thing is clickable for the link.

Now I am trying to enhance my navigation so that onmouseover the image switches with one that has a downward pointing arrow (which goes right over the text from the a tag) and points at a box which contains different links depending on which li you mouse over.

My problem is that the downward arrows look silly when they cover just part of the text. I thought i had solved this by changing the visibility property of the a tag to none when I was mousing over the li, but I guess giving your a tag no visibility also means you lose the ability to click it... at least in my case.

Is there anyway I can make the text disappear and not lose the functionality of the a tag?

Also, just to be clear, I cannot make the text the same color as the background because only the tip of the arrow goes over the text--making only part of the word covered.

Thanks in advance!!
__________________
Luke Robinson

Please login or register to view this content. Registration is FREE
lrobinson is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-17-2009, 02:55 PM Re: hide the text in a tag but still be able to click it?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
put a span around the text you want to "disappear" and toggle the colour of the span
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-17-2009, 03:50 PM Re: hide the text in a tag but still be able to click it?
Average Talker

Posts: 29
Name: Luke
Trades: 0
Unfortunately, that won't work because the edges of the arrow are diagonal, so some of the letters would still half show. Any other options for hiding a link but still having it be active?
__________________
Luke Robinson

Please login or register to view this content. Registration is FREE
lrobinson is offline
Reply With Quote
View Public Profile
 
Old 08-17-2009, 04:47 PM Re: hide the text in a tag but still be able to click it?
Average Talker

Posts: 29
Name: Luke
Trades: 0
I found the solution! I don't know why i didnt think of this sooner... Change the font size really small so it all fits within the arrow! Thanks for your help!
__________________
Luke Robinson

Please login or register to view this content. Registration is FREE
lrobinson is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to hide the text in a tag but still be able to click it?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.49800 seconds with 12 queries