PDA

View Full Version : path in between a tag


allison
09-13-2002, 06:36 PM
Hello all,


when I write this line
<a href = "blah">http://blah/blah/blah/blah</a>

note.
that line is in a table that is part of our template

when i write the path like that it breaks the table up by stretching it. but when I replace the
http://blah/blah/blah/blah

with a long string sssssssssssssss etc.. it will wrap and the template table is not stretched

it's like it treats the string as a real path when it fact it is just a description of the path, made to look like a real address

our business rule is:


you write <a href = "http://www.adobe.com">
http://www.adobe.com
</a>


and not

<a href = "http://www.adobe.com">
adobe site
</a>

basicly the client wants to see the the address as a link

can anyone explain this to me?

thanks

A.

Nightfire
09-13-2002, 08:16 PM
In the td tag, put nowrap in

<td nowrap>

TBH your post confuses me :)

sbelletti
09-13-2002, 09:05 PM
If I read your post correctly, the text between your <A> tags is not wrapping thus making your table extend wider. If there aren't any spaces in a line, then the browser doesn't know where to break it to create a wrap.

So..

<a>http://www.adobe.com/</a>

will be the same length as...

<a>Theoldmanandthealiens</a>

Both will make your table stretch because there are no spaces between any of the letters. If you want to preserve your table width, you will have to manually insert a <wbr> in order to tell the browser where to break.

allison
09-14-2002, 12:07 AM
hi,

In my case the string will wrap. it is only when it appears
to look like a path ie http://www.adobe.com

it appears that it was the http:// that was causing the error
i still don't know why. I was using textpad and it color coded
my string and perhaps that was the root of the problem

but then i took it on a development server and it was stretching the table


so it seams that in my case

<a href = "http://www.adobe.com">www.adobe.com</a>
and
<a href = "http://www.adobe.com">wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww</a>

work,
but not

<a href = "http://www.adobe.com">http://www.adobe.com</a>path:confused:


of course the path is not adobe but a very long obscure

thanks for your help

A.