Click to See Complete Forum and Search --> : Spacing of <a> tags in <span>


OM2
04-11-2009, 07:00 PM
I have the following code:

<span >
<a href="#">ABOUT</a>
<a href="#">CONTACT</a>
<a href="#">ABC</a>
<a href="#">XYZ</a>
<a href="#">TEST</a>
</span>


Why is there a space between the links?
The output is:
ABOUT CONTACT ABC XYZ TEST

Why isn't is:
ABOUTCONTACTABCXYZTEST

ALSO: I'm using Dreamweaver to edit
Why is is showing a spacing of 4 spaces between each of the links?
I've checked on 3 of the latest browsers and the spacing is one one space??

Thanks


OM

Quidam
04-12-2009, 11:07 AM
XHTML will render whitespace as a &nbsp;.

You must either switch to HTML 4.1 or remove the whitespace in your document.


<span>
<a href="#">ABOUT</a><a href="#">CONTACT</a><a href="#">ABC</a><a href="#">XYZ</a><a href="#">TEST</a>
</span>

OM2
04-13-2009, 06:23 AM
hmmm ok
i wasnt aware of that
at least i know now :)