Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Iframe Link Issue

    Code:
    <a href="http://upload.wikimedia.org/wikipedia/commons/6/6e/Golf_Swing_Animation.gif"  target="animation">Golfer</a>
    
    <br><br>
    
    <iframe name="animation" height="600px" width="100%" seamless></iframe>
    My question is, how can I make this link also display text underneath the image? For example "Above is a picture of a golf swing"

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,763
    Thanks
    23
    Thanked 548 Times in 547 Posts
    FYI your code does nothing to the iframe. It goes to http://upload.wikimedia.org/wikipedia... because your using an anchor.
    Use <iframe src="http://upload.wikimedia.org/wikipedia/commons/6/6e/Golf_Swing_Animation.gif"
    id="addtext" name="animation" height="600px" width="100%" seamless></iframe>

    An easy answer is to put the text under the iframe.
    Code:
    <div style="text-align:center;">
    <iframe src="http://upload.wikimedia.org/wikipedia/commons/6/6e/Golf_Swing_Animation.gif"
    id="addtext" name="animation" height="560px" width="560px" scrolling="no" frameborder="0" seamless>
    </iframe>
    <br />Above is a picture of a golf swing
    </div>
    Last edited by sunfighter; 09-14-2013 at 05:42 PM.
    Evolution - The non-random survival of random variants.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •