2014-01-31 20:07, Tom Livingston wrote:

[...]
ul a{
         display: block; /* <- Add this */

[...]
Ha ha. As always, I can't see the forest for the trees. Such a simple
solution David... :-/

But to a problem different from the one asked, which was about setting the width of underlines to the width of the widest link text. The code above sets it to the available width, since block elements have width: auto (effectively, width: 100%) as the default.

Yucca


______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to