Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrapped hyperlinks in a table

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I need to display some text in a table. The text is pulled out dynamically and I do not control the contents. I do know however that it will all be links to other pages. The problem is that although I do a no wrap, the text gets split up into two at the end of the table. I do not want that to happen. I am ok with the entire link being moved to the next column. However a single link should not be split into multiple lines. I don’t know what I am missing.

I am ok with:

This is an url to tek-tips This is an url to tek-tips This is an url to tek-tips
This is an url to tek-tips This is an url to tek-tips This is an url to tek-tips
This is an url to tek-tips This is an url to tek-tips This is an url to tek-tips

I am not ok with:

This is an url to tek-tips This is an url to tek-tips This is an url to tek-tips This is an url to tek-tips This is an url to tek-tips This is an url to tek-tips This is an url to tek-tips This is an url to tek-tips This is an url to tek-tips


Here is the code:

<HTML>
<HEAD>
<META NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual Studio 6.0&quot;>
<TITLE></TITLE>
</HEAD>
<BODY>

<P> </P>

<table width=&quot;600&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;3&quot;>

<tr>
<td align=&quot;center&quot; wrap=&quot;true&quot;>

<a href=&quot; is an url to tek-tips</a>      

<a href=&quot; is an url to tek-tips</a>      

<a href=&quot; is an url to tek-tips</a>      

<a href=&quot; is an url to tek-tips</a>      

<a href=&quot; is an url to tek-tips</a>      

<a href=&quot; is an url to tek-tips</a>      

<a href=&quot; is an url to tek-tips</a>      

<a href=&quot; is an url to tek-tips</a>      

<a href=&quot; is an url to tek-tips</a>      

</td>
</tr>


</table>

</BODY>
</HTML>

Any hints will be appreciated. Thanks a lot.
 
I did not intend to split the links when I pasted the &quot;I am ok&quot; part. The preview had it proper. Please ignore the &quot;I am ok&quot; part its the wrong. :-(
 
Hi,

I think this is what you want:
enclose each hyperlink with the <nobr></nobr> tags:

(BTW, try to avoid the blank lines in your code as much as possible)

<table width=&quot;600&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;3&quot;>
<tr>
<td align=&quot;center&quot; >
<nobr><a href=&quot; is an url to a site with a much longer text</a></nobr>
<nobr><a href=&quot; is an url to tek-tips</a></nobr>
<nobr><a href=&quot; is an url to tek-tips</a></nobr>
<nobr><a href=&quot; is an url to a site with an extremely long text to show as example that it won't wrap</a></nobr>
<nobr><a href=&quot; is an url to tek-tips</a></nobr>
<nobr><a href=&quot; is an url to tek-tips</a></nobr>
<nobr><a href=&quot; is an url to tek-tips</a></nobr>
<nobr><a href=&quot; is an url to tek-tips</a></nobr>
<nobr><a href=&quot; is an url to tek-tips</a></nobr>
</td>
</tr>
</table>

Hope this helps,
Erik
<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Sorry, I screwed up (twice). I reread the question after I answered it, and my post was something that really didn't address the problem. Plus I am having trouble with my internet connection being S L O W and hit the repost button a second time after 'stopping' the browser and correcting my text.

[noevil] Vist me at
 
Boomerang U ROCK!!!!!!!! That worked.... trala lala traaaa la la la....

gbraden.... don't worry about it... been there done that...

thanks both u guys.
 
This is confusing. I have been trying for the last few minutes to give Boomerang a star for his recommendations. However I can't seem to find a link to do it.

There is another post here that says that I have to look for the hyper link &quot;Click here to mark this post as a helpful or expert post!&quot;.. where is this?????

Tips??? Or is is that I am just in an elevated sense of duhness???
 
This is confusing. I have been trying for the last few minutes to give Boomerang a star for his recommendations. However I can't seem to find a link to do it.

There is another post here that says that I have to look for the hyper link &quot;Click here to mark this post as a helpful or expert post!&quot;.. where is this?????

Tips??? Or is is that I am just in an elevated sense of duhness???
 
Only members can give stars, visitors can't

Members will see the link at the left-bottom corner of each post.

Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top