Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    path in between a tag

    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.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    In the td tag, put nowrap in

    <td nowrap>

    TBH your post confuses me

  • #3
    New to the CF scene
    Join Date
    Sep 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    New Coder
    Join Date
    Aug 2002
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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">wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww ww</a>

    work,
    but not

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


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

    thanks for your help

    A.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •