odd image puzzler

Discussion in 'HTML' started by Richard, Jan 4, 2004.

  1. Richard

    Richard Guest

    www.1-large-world.com/images/xtest.jpg

    Compare the image on the left to the one on the right.
    I can't for the life of me figure out why that little _ character shows up
    just after the image.
    Other than the possibility of the </a> tag being on a seperate line.
    If I put the </a> tag on the same line, the character goes away, but then
    the text appears immediately after the image, so I have to put in a <br>.
    This happens in both IE and mozilla.

    Just curious to know why this is.

    This never happened before tonight.
    The only other thing I did tonight was install one program.
    Could this have screwed up a shared file perhaps?
     
    Richard, Jan 4, 2004
    #1
    1. Advertising

  2. Richard wrote:
    > www.1-large-world.com/images/xtest.jpg
    >
    > Compare the image on the left to the one on the right.
    > I can't for the life of me figure out why that little _ character shows up
    > just after the image.


    And how are we supposed to help without seeing your HTML? Give us a URL
    to the actual page, please.
     
    Leif K-Brooks, Jan 4, 2004
    #2
    1. Advertising

  3. Richard

    PeterMcC Guest

    Richard wrote:
    > www.1-large-world.com/images/xtest.jpg
    >
    > Compare the image on the left to the one on the right.
    > I can't for the life of me figure out why that little _ character
    > shows up just after the image.
    > Other than the possibility of the </a> tag being on a seperate line.
    > If I put the </a> tag on the same line, the character goes away, but
    > then the text appears immediately after the image, so I have to put
    > in a <br>. This happens in both IE and mozilla.
    >
    > Just curious to know why this is.
    >
    > This never happened before tonight.
    > The only other thing I did tonight was install one program.
    > Could this have screwed up a shared file perhaps?


    URL of real page?

    --
    PeterMcC
    If you feel that any of the above is incorrect,
    inappropriate or offensive in any way,
    please ignore it and accept my apologies.
     
    PeterMcC, Jan 4, 2004
    #3
  4. Richard

    Bob Long Guest

    In news:,
    Richard <anonymous@127.000> typed:
    > www.1-large-world.com/images/xtest.jpg


    A real URL would be more helpful.

    > Compare the image on the left to the one on the right.
    > I can't for the life of me figure out why that little _ character
    > shows up just after the image.
    > Other than the possibility of the </a> tag being on a seperate line.
    > If I put the </a> tag on the same line, the character goes away,


    That is most likely it. The new line is being treated as white space. And as
    it is within the anchor, it will thus be underlined as part of the link.

    > but
    > then the text appears immediately after the image, so I have to put
    > in a <br>. This happens in both IE and mozilla.
    >
    > Just curious to know why this is.


    If you are putting </a> on a new line to "force' text to a new line, then
    you have the wrong approach.

    Bob Long
     
    Bob Long, Jan 4, 2004
    #4
  5. Richard wrote:

    > Other than the possibility of the </a> tag being on a seperate line.


    That is why.

    The new line causes white space to appear. (You would hate it if it didn't
    -- trust me!) As that white spcae is before the "</a>", it is part of the
    link, and thus underlined.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me - http://www.goddamn.co.uk/tobyink/?page=132
     
    Toby A Inkster, Jan 4, 2004
    #5
  6. Richard wrote in message ...
    > www.1-large-world.com/images/xtest.jpg
    > I can't for the life of me figure out why that little _ character shows

    up
    > just after the image.


    It's part of the hyperlink which your image has to enlarge to a new
    photograph.

    Check yout HTML. You'll probably find a space before the closing </a> of
    your link from the thumbnail image. Make sure the <br> for the caption
    comes right after the </a>.

    You know it's part of the link because if you click on the underscore
    you'll get your enlarged image.

    Steve.
     
    Trevor George, Jan 4, 2004
    #6
  7. Richard

    Steve R. Guest

    Richard wrote in message ...
    > www.1-large-world.com/images/xtest.jpg
    > I can't for the life of me figure out why that little _ character shows
    > up just after the image.


    It's part of the hyperlink which your image has to enlarge to a new
    photograph.

    Check yout HTML. You'll probably find a space before the closing </a> of
    your link from the thumbnail image. Make sure the <br> for the caption
    comes right after the </a>.

    You know it's part of the link because if you click on the underscore
    you'll get your enlarged image.

    Steve.
     
    Steve R., Jan 4, 2004
    #7
  8. Richard wrote:

    >www.1-large-world.com/images/xtest.jpg
    >
    >Compare the image on the left to the one on the right.
    >I can't for the life of me figure out why that little _ character shows up
    >just after the image.
    >Other than the possibility of the </a> tag being on a seperate line.


    Every text - this includes white space - inside an a-element is
    underlined by default. What you see is an underlined line break.

    >If I put the </a> tag on the same line, the character goes away, but then
    >the text appears immediately after the image, so I have to put in a <br>.
    >This happens in both IE and mozilla.


    Put a blank between the link and the text:

    <a href=...><img ...></a> 1928 Giza Egypt
    ^
    >Just curious to know why this is.
    >
    >This never happened before tonight.


    Might be the moon, it's nearly full.

    Micha
     
    Michael Fesser, Jan 4, 2004
    #8
  9. Richard

    John McGaw Guest

    "Richard" <anonymous@127.000> wrote in message
    news:...
    > www.1-large-world.com/images/xtest.jpg
    >
    > Compare the image on the left to the one on the right.
    > I can't for the life of me figure out why that little _ character shows up
    > just after the image.
    > Other than the possibility of the </a> tag being on a seperate line.
    > If I put the </a> tag on the same line, the character goes away, but then
    > the text appears immediately after the image, so I have to put in a <br>.
    > This happens in both IE and mozilla.
    >
    > Just curious to know why this is.
    >
    > This never happened before tonight.
    > The only other thing I did tonight was install one program.
    > Could this have screwed up a shared file perhaps?
    >

    Every time I've seen it happen on my pages it has been a matter of a space
    or line break showing up between a linked image and the following content.
    This happens semi-randomly since I usually format my source with Tidy after
    every minor change.
    --
    John McGaw
    [Knoxville, TN, USA]

    Return address will not work. Please
    reply in group or through my website:
    http://johnmcgaw.com
     
    John McGaw, Jan 4, 2004
    #9
  10. Richard

    Richard Guest

    Than you all.
     
    Richard, Jan 4, 2004
    #10
  11. Richard

    Sid Ismail Guest

    On Sun, 4 Jan 2004 03:23:36 -0600, "Richard" <anonymous@127.000> wrote:

    : Just curious to know why this is.
    :
    : This never happened before tonight.


    Didn't you hear? Aliens have arrived yesterday...

    Sid
     
    Sid Ismail, Jan 4, 2004
    #11
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jim Corey

    dropdown puzzler

    Jim Corey, Jan 16, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    386
    Jon Booth
    Jan 16, 2004
  2. Anon

    xsd puzzler

    Anon, Oct 21, 2003, in forum: XML
    Replies:
    3
    Views:
    431
  3. Tim Daneliuk

    Tkinter Puzzler

    Tim Daneliuk, Jan 7, 2005, in forum: Python
    Replies:
    4
    Views:
    334
    Tim Daneliuk
    Jan 7, 2005
  4. Paul Rubin

    tkinter puzzler

    Paul Rubin, May 12, 2005, in forum: Python
    Replies:
    5
    Views:
    424
    Russell E. Owen
    May 16, 2005
  5. Replies:
    5
    Views:
    320
    Carlos Martinez
    Mar 31, 2006
Loading...

Share This Page