Help With Weird Ahref Code

Discussion in 'HTML & Website Design' started by rboesen1, Mar 29, 2012.

  1. #1
    I was messing around with putting an ad on one of my sites to cross promote another site. When I have this banner activated it turnes all of the text below it into a link as well. Someone that maybe has some knowledge please go to my site and hover over text below my Hobby Pros banner and see if you can maybe tell me what I am doing wrong.

    Site http://city4ums.com/online.php?order=asc&sort=username&pp=20&page=1

    Thank you :)
     
    rboesen1, Mar 29, 2012 IP
  2. Masim man

    Masim man Active Member

    Messages:
    73
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    58
    #2
    Not weird at all, you just forgot to close the anchor tag.
    <div id="ad_global_below_navbar"><center><a href="http://hobby-pros.com" target="_blank">
    <img src="http://i.imgur.com/U0Hvl.png"></center></div>
    Code (markup):
    For XHTML document type tag <img> has a closing tag. Use text-align:center instead of <center>.
    Element center is deprecated in XHTML.
    Here is the code:
    <div id="ad_global_below_navbar" style="text-align:center"><a href="http://hobby-pros.com" target="_blank">
    <img src="http://i.imgur.com/U0Hvl.png"/></a></div>
    Code (markup):
     
    Masim man, Mar 30, 2012 IP
  3. rboesen1

    rboesen1 Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you very much!:)
     
    rboesen1, Mar 30, 2012 IP