[thelist] CSS: display: block on links

kasimir-k kasimir.k.lists at gmail.com
Sat Jan 13 11:38:31 CST 2007


Bill Moseley scribeva in 13/01/2007 17:10:
> Where this doesn't work so well is when I have text on a second line:
> 
>     <td>
>         <a href="stuff">x</a>
>         <br />
>         Some other text
>     </td>

So if the <a> has a sibling node, then you don't want it display: block? 
Change this:

>                     if ( link.length != 1 ) continue;

to:
if (link.length != 1 || link.nextSibling) continue;

.k



More information about the thelist mailing list