Underlining Links on Mouse Over Only

Underlining Links on Mouse Over Only

Question:

When I add a hyperlink to an ASP page, the link appears underlined. How can I remove the underline from the link? I only want the line to appear when I point the mouse over to the hyperlink. There are examples in the DevX sidebar.

Answer:

You can achieve the effect of underlining links on mouse over only by using style sheets.

A link belongs to the anchor tag “A”. Whatever style you associate with the anchor tag will be applied to all links on your page. Internet Explorer supports the “hover” mode of link tags. The “hover” mode allows you to set a different style for the hover portion of the “A” tag.

Add the following code to your HTML page:

This will display your links with NO underlines, except when you point to mouse to them.

Having explained the technique, I do not recommend applying it. People are used to seeing links underlined. Users may get confused in a web site where the links are not obvious. Leave your links underlined, unless you plan to color them or make them stand out in another way.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several