how do you make webpage links that open in div windows

Discussion in 'HTML & Website Design' started by bens18uk, Apr 27, 2006.

  1. #1
    i what to have other link to other pages that appear in a div window

    heres the script the the div window thing if it will help you understand my problem

    <BASE TARGET="s0">

    <DIV ALIGN=center class=s0 style='text-align: center;'>
    <IFRAME MARGINHEIGHT="2" MARGINWIDTH="2" HEIGHT="73%" WIDTH="72%" SRC="test_000001.html" TARGET=_top BORDERCOLOR=#0F0000 SCROLLING=yes >
    </IFRAME>
    </div>

    thanx in advance for your help
    Ben
     
    bens18uk, Apr 27, 2006 IP
  2. johneva

    johneva Well-Known Member

    Messages:
    1,480
    Likes Received:
    46
    Best Answers:
    1
    Trophy Points:
    170
    #2
    I am not 100% sure what your after and your example markup has lots of errors.

    So you just want to taget a link to an iframe?

    Here is the link.
    
    <a href="#" target="frame1">Link Text</a>
    
    HTML:
    Here is the div and iframe without any of your extra styling.(That should be in CSS Really)
    
    <div>
     <iframe src="#" name="frame1">
     </iframe>
    </div>
    
    HTML:
     
    johneva, Apr 27, 2006 IP
  3. madkad

    madkad Active Member

    Messages:
    1,686
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    90
    #3
    <div> is a tag not a window, just to let you know :)
     
    madkad, Apr 27, 2006 IP
  4. bens18uk

    bens18uk Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks you
     
    bens18uk, Apr 27, 2006 IP
  5. Ezo

    Ezo Well-Known Member

    Messages:
    262
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #5
    Sorr for bumping this thread, but i got the same problem as bens18uk, except that i don't want to get the page loaded in an iframe.
    I want it in a div.
    <a href="rtd_info.php" target="content">a</a><br />
    (content is the name of my div tag)
    Is it even possible to load in a div tag?
     
    Ezo, Apr 16, 2007 IP