WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: spacing -   versus clear images

for

From: Jared Smith
Date: Mar 6, 2006 6:30PM


Ted Gies wrote:
> What is better for controlling spacing between items on a web page, a
> nbsp; or an invisible image with alt=""?

I would think something like <p style="margin:5px"> or <td
style="padding-left:10px"> or similar would be a more universally
supported, yet not overly complex solution. Of course, external CSS and
semantically correct code are much better alternatives, but it seems that
you understand that.

In my mind, the disadvantages of using a non-breaking space vs. a spacer
image are about equal, so it probably won't matter much. A spacer image
will give you much more control.

Jared Smith
WebAIM.org