i want to know how to make space within hyperlinked text or images for example:
<a href="http://www.daniweb.com">daniweb</a>
<a href="http://www.daniweb.com">daniweb 2</a>
so the output will be

Daniweb daniweb 2

if add <BR> instead of </a> then it's now what i mean it's out put is that
daniweb 2

is there any way to make space like that "Dani web Daniweb 2 "?

Thanks in advance

Recommended Answers

By default, the original HTML you posted:

<a href="http://www.daniweb.com">daniweb</a> 
<a href="http://www.daniweb.com">daniweb 2</a> …
Jump to Post
<a href="http://www.daniweb.com">dani web</a>
<a href="http://www.daniweb.com">daniweb 2</a>
Jump to Post

All 5 Replies

You can use &nbsp; in HTML code to give space.

can you be a little more specific I think you have to use a paragraph or somethin' but replacing the end tag of <a> with <br /> its a big NO .. I think you know why oif you'll try it :)

Matricol, typing slowly just for you,,
no mention of replacing end tags was made, you appear foolish

browsers display differently some add a space where there is a carriage return in the source, some do not, better to ensure the space with a no-break space as written by vibhadevit above
the character string &nbsp; where you want a space to appear, after the first end anchor bla </a> &nbsp;

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.