W3C home > Mailing lists > Public > www-style@w3.org > January 2010

Re: Small problems with border-bottom for links, resolvable with outline-bottom?

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 25 Jan 2010 00:42:39 -0800
Message-ID: <4B5D597F.5020505@inkedblade.net>
To: w3-style@boblet.net
CC: www-style <www-style@w3.org>
On 01/25/2010 12:15 AM, Oli Studholme wrote:
> Hi All,
> Links are traditionally indicated via {text-decoration: underline;},
> however this can decrease legibility when the underline overlaps text
> descenders (g,p,q etc), or when it’s too close to a detailed character
> (eg complex kanji on XP). To get around these problems, it’s become
> fairly popular for designers to replace underline with border-bottom,
> for example {text-decoration: none; border-bottom: 1px solid
> #something;}. This also gives more flexibility as the underline’s
> color, width, style and distance from the text can be altered,
> allowing for eg far nicer :hover styling.
> ...
> Both of my problems would be solved by being able to use something
> like outline-bottom instead of border-bottom....

Seems to be that better controls over underlining would be a better
idea than trying to rope 'outline' into the job, no? :)

Received on Monday, 25 January 2010 08:43:21 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 12:34:33 UTC