Solved

How to disable the link's underline?

Posted on 1998-11-23
1
774 Views
Last Modified: 2012-08-14
I want to disable the link's underline. Is it possible? Actually, I want to put a link on a image, but I don't want to have the underlink shown.
0
Comment
Question by:yuho
1 Comment
 
LVL 4

Accepted Solution

by:
rafistern earned 10 total points
ID: 1839994
You are asking two separate questions here:

To disable the underline put

style="text-decoration:none;"

in the <a> tag of the link. To disable for all links on the page put

<style>
a {text-decoration:none;}
</style>

in the header. This style will be honored by IE3+ and NS4+ only.


To prevent the blue line around an image containing a link put

border=0

in the <img> tag.

If you have a problem with a small blue line appearing after the the image, then put the <a><img></a> tags all on one line.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hyper V cluster 2 31
Javascript Hashmap output 8 46
Bad <form> statement? 9 26
two div layout one vertical other horizontal. 5 8
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now