Why NOT to underlink hyperlinks

Information on ASP, ASP.NET, PHP, HTML, Javascript and anything else WWW related.

Why NOT to underlink hyperlinks

Postby Buck on Fri Dec 05, 2008 9:42 am

I found this posted here but not knowing how log it would be available, I posted it on this forum as well but wanted to give credit:
http://impresslab.com/design/why-not-to-underline-hyperlinks/

While many would say that you should underline hyperlinks (using text-decoration:underline;), we think otherwise. Instead of using the underline feature that is standard in hyperlinks, you should use a bottom border.

The reason for this is from a readability standpoint. If you use the standard underline, the line will be cutting through the descenders of your type in letters like g, y, and p. This is bad practice since you are making it harder to read these letters, especially for serif fonts that are already a bit hard to read. Consider the standard hyperlink style with an underline:

Image

The Solution
We instead recommend that you use the border-bottom style for your hyperlinks:

Code: Select all
p a {
color:#3366CC; /* Blue font color, or whatever you want */
text-decoration:none; /* No underline */
border-bottom:1px solid #ff9900; /* Orange underline */
}
p a:hover {
color:#333333; /* Gray font color, or whatever you want */
text-decoration:none; /* No underline */
border-bottom:1px solid #CC0000; /* Red underline */
}

This style will look like this:
Image


The bottom border does not cut through the descenders of the type.

You can also specify other links for active and visited. Notice that using the border-bottom style for links opens many more color possibilities in addition to the enhanced readability. You can use red or black or green underlines, whatever color fits your site best.

The difference may be subtle, but is more pronounced when the difference between both styles is viewed:

Image

Simple tricks such as this are what help separate good design from great design with a focus on readability. You do not have to use this technique for all hyperlinks, just your main body text which is usually smaller font and harder to read. For example, headers are already easy to read, so using the bottom border technique on hyperlinks will add little value.
User avatar
Buck
 
Posts: 22
Joined: Wed Oct 29, 2008 10:25 pm

Re: Why NOT to underlink hyperlinks

Postby Buck on Fri Dec 05, 2008 9:58 am

Additionally, in place of the,
Code: Select all
border-bottom: 1px solid #ff9900


You can put the following for a Double Underline effect

Code: Select all
border-bottom: 3px double #ff9900
User avatar
Buck
 
Posts: 22
Joined: Wed Oct 29, 2008 10:25 pm


Return to Web Site Assistance

Who is online

Users browsing this forum: No registered users and 1 guest

cron