WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Duplicate linkage

for

From: Shawn Lawler
Date: Sep 1, 2009 9:45AM


Steven Henderson wrote:
> I'm thinking of a list, Jared, yes. Something like this:
>
> <li><a href="http://www.website.com/blue.html"><span>Best blue
> product</span> <img src="products/blue.jpg" alt="" /></a></li>
>
> I'd like to use a block level tag instead of the span, but to place the
> image and a text title within the a tag, I need to use an inline tag.
>

A simple CSS rule could give your span, block level behavior.

.myPortfolioItems li span {display:block;}