Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please can anyone help me on how to put a table on an hyperlink so that it won't display the underlined text of hyperlink like ("Home" | "About Us"| )e.t.c pls.
Posted
Comments
Herman<T>.Instance 5-Aug-11 10:28am    
please refrase your question. What is your exact problem?

I don't understand what you mean by table but to remove the underline from a hyperlink yo uneed to use CSS

a.myLinks
{
 text-decoration: none;
}

<a herf="..." class="myLinks>test</a></pre></xml>"></a>
 
Share this answer
 
v2
Comments
thatraja 5-Aug-11 21:45pm    
5!
Seems like you are doing a menu, so I'll suggest you take a look at this article:
Sexy Drop Down Menu w/ jQuery & CSS[^]

Here are 38 jQuery And CSS Drop Down Multi Level Menu Solutions[^]

Hopefully you'll get some ideas about how to add navigation to your site.

Best regards
Espen Harlinn
 
Share this answer
 
Comments
thatraja 5-Aug-11 21:45pm    
Good call
Espen Harlinn 6-Aug-11 5:41am    
Thanks thatraja!
Mark is right. You just need to change the style of the anchor tag.

Way 1 - It'll remove underline for all links
HTML
<style type="text/css">
a
 {
  text-decoration: none;
 }
</style>
<a href="test.htm">test</a>


Way 2 - It'll remove underline for all links which used the class linkHead
HTML
<style type="text/css">
a.linkHead
 {
  text-decoration: none;
 }
</style>
<a href="test.htm" class="linkHead">test</a>


Way 3 - It'll remove underline for the particular link
HTML
<a href="test.htm" style="text-decoration: none;">test</a>


Way 2 is recommended one.
 
Share this answer
 
Comments
Espen Harlinn 5-Aug-11 12:29pm    
Nice reply, my 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900