Ask Experts Questions for FREE Help !
Ask
    NeedKarma's Avatar
    NeedKarma Posts: 10,635, Reputation: 1706
    Uber Member
     
    #1

    Oct 11, 2006, 11:41 AM
    Can I put a named anchor tag at an image location?
    Something like this:

    Code:
    <A name="NKmessage"><IMG alt="" src="/xxxx/Gord.jpg"> </A>
    Or do you absolutely have to have text in the anchor tag?
    Roel Zylstra's Avatar
    Roel Zylstra Posts: 84, Reputation: 14
    Tech entrepreneur, perpetual student,lover of life
     
    #2

    Oct 11, 2006, 12:25 PM
    Sure you can use "name" in an anchor tag without anchor text, but if you don't use href then some older browsers may not react to a # href within another link.
    NeedKarma's Avatar
    NeedKarma Posts: 10,635, Reputation: 1706
    Uber Member
     
    #3

    Oct 11, 2006, 03:25 PM
    I tried it using IE and when I try the url that has the "#NKmessage" at the end I simply end up at the top of the page.
    LTheobald's Avatar
    LTheobald Posts: 1,051, Reputation: 127
    Ultra Member
     
    #4

    Oct 16, 2006, 09:50 AM
    The two lines of :
    Code:
    <a name="img"><img src="something.jpg" alt="something"></a>
    And then

    Code:
    <a href="#img">Back to image</a>
    Worked for me in IE 7, Firefox and whatever the internal browser in HTML Kit is based on.
    NeedKarma's Avatar
    NeedKarma Posts: 10,635, Reputation: 1706
    Uber Member
     
    #5

    Oct 16, 2006, 09:56 AM
    I'll try that. Thanks.
    NeedKarma's Avatar
    NeedKarma Posts: 10,635, Reputation: 1706
    Uber Member
     
    #6

    Oct 16, 2006, 11:08 AM
    Works like a charm. Thanks Guys!

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Anchor furniture down [ 1 Answers ]

I have a pool with a vinyl liner and would like to anchor the outdoor chairs and table furniture down. How do I do this on cement we get alt of wind and I do not want the furniture to blow into the pool with a vinyl liner?

Mailto tag [ 1 Answers ]

I want to set up a mailto link with MANY names afterwards. However, when I set up the link, it only works if I have about 90 names. Anything more than that and the link appears on the page but is not active. Why is there this upper limit, what exactly is it and is there any way around it? Thanks


View more questions Search