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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hyperlink

Status
Not open for further replies.

tlmm

Programmer
Joined
Mar 25, 2004
Messages
45
Location
CA
I have a hyperlink that needs to be displayed on a web page. The user can click this link to open the page. What I am wondering is: I think there's a bit of code that can split a hyperlink into 2 lines, but I can't find it.

E.g. this is what is displayed on the page:


I would like it to be displayed as:

test/page/default.html

because of space limitations.

If I split it in the code, even if the anchor tag is still around it, it only considers the first part of the link ( to be the hyperlink and ignores the rest of the url.

Thanks.
 
In IE6, putting a <br> tag in the text between the open- and close-anchor tags works for me.

--Dave
 
wouldn't it be simpler to just use a shorter anchor text assuming you have control over it of course.

Code:
<a href="[URL unfurl="true"]http://www.test.com/thisisatest/page/default.html">Test[/URL] page</a>

or use <br> in the anchortext as dave suggested

Code:
<a href="[URL unfurl="true"]http://www.test.com/thisisatest/page/default.html">www.test.com/thisisa<br>/testpage/default.html</a>[/URL]




Chris.

Indifference will be the downfall of mankind, but who cares?
 
Thanks. I did try that, but part of the reason it would not work is because I had the url wrong. I'm not with it today!

Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top