<a href> and target issue

Discussion in 'PHP' started by dahr, Aug 22, 2008.

  1. #1
    I've been trying to make a link with a target but I can make it work as I want.
    What I've written is the following:

    <span id="history">History <a href="history.php" target="iframe"></a></span>

    And in my css script I have the following:

    span#history {float:left; display:block; padding-right: 10px; font-weight: bold; font-size: 13px; margin-top:5px;}
    #history:hover{text-decoration: underline;}

    So whenever I click over the word History it doesn't link me to history.php
     
    dahr, Aug 22, 2008 IP
  2. Sam Designs

    Sam Designs Active Member

    Messages:
    474
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    <span id="history"><a href="history.php" target="iframe">History</a></span>
     
    Sam Designs, Aug 22, 2008 IP