Results 1 to 5 of 5

Thread: iframe inside div (needing help)

  1. #1
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question iframe inside div (needing help)

    hi, ive been doing a website for my clan... and i putted various colums of divs, some with images, and anothers with iframe.

    somehow the iframe hides the others divs coming after his code.

    Code:
    <div id="container">
    <div id="container1"><img src="_files/container1.jpg"/></div>
    <div id="container2"><iframe name="main" src="index.html" width="550" height="686" scrolling="no" frameborder="0"/></div>
    
    <div id="container3"><div id="container3p1"><img src="_files/container3p1.jpg"/></div><div id="container3p2"><div id="container3p2p1"><img src="_files/container3p2p1.jpg"/></div><div id="container3p1p2p2"><iframe src="http://falaputo.freeshoutbox.net" width="160" height="250" scrolling="no" frameborder="0"/></div><div id="container3p2p3"><img src="_files/container3p2p3.jpg"/></div><div id="container3p2p4"><a href="http://www.gametracker.com/server_info/82.192.78.6:7020/"><img src="http://cache.www.gametracker.com/server_info/82.192.78.6:7020/b_160x400_T0_F-1_C7A7A7A-049507-7A7A7A-000000.png" border="0" /></a></div><div id="container3p2p5"><img src="_files/container3p2p5.jpg"/></div>
    </div><div id="container3p3"><img src="_files/container3p3.jpg"/></div></div>
    
    <div id="container4"><img src="_files/container4.jpg"/></div>
    </div>
    
    <div id="footer">
      <div align="center" class="footer"><span class="copyright">&copy;</span> RêV$ 2007- 2008</div>
    </div>
    Code:
    #container {
    	width: 800px;
    	height: 686px;
    	margin: 0 auto;
    	background-color: #31343d;
    }
    
    #container1 {
    	float: left;
    	width: 19px;
    	height: 686px;
    	margin: 0 auto;
    }
    
    #container2 {
    	float: left;
    	width: 550px;
    	height: 686px;
    	margin: 0 auto;
    }
    
    #container3 {
    	float: left;
    	width: 212px;
    	height: 686px;
    	margin: 0 auto;
    }
    
    #container3p1 {
    	float: left;
    	width: 17px;
    	height: 578px;
    	margin: 0 auto;
    }
    
    #container3p2 {
    	float: left;
    	width: 160px;
    	height: 578px;
    	margin: 0 auto;
    }
    
    #container3p2p1 {
    	width: 160px;
    	height: 4px;
    	margin: 0 auto;
    }
    
    #container3p2p2 {
    	width: 160px;
    	height: 250px;
    	margin: 0 auto;
    }
    
    #container3p2p3 {
    	width: 160px;
    	height: 8px;
    	margin: 0 auto;
    }
    
    #container3p2p4 {
    	width: 160px;
    	height: 312px;
    	margin: 0 auto;
    }
    
    #container3p2p5 {
    	width: 160px;
    	height: 4px;
    	margin: 0 auto;
    }
    
    #container3p3 {
    	float: left;
    	width: 35px;
    	height: 578px;
    	margin: 0 auto;
    }
    
    
    #container4 {
    	float: left;
    	width: 19px;
    	height: 686px;
    	margin: 0 auto;
    }
    so the only thing i see is the iframe and the code before.
    but if i trade the iframe for an image it works fine.

    for example:
    the iframe of the div id="container2",
    in firefox, it ignores all the code after this iframe
    in IE, it ignores all the code after, except the other iframe


    i would apreciatte any help of the members of this forum.
    oh, and sorry for my bad english.

  2. #2
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    i dont know if the code before this affects how it should work :\
    the mesures of the website are 800px*1000px

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    You don't have closing iframe tags.

    Add </iframe> at the end of your iframe tag.

    Code:
    <iframe width="#" height="# .....></iframe>

  4. The Following User Says Thank You to Medyman For This Useful Post:

    falaputo (03-02-2008)

  5. #4
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    lol... worked
    i didnt tried that

    , btw i putted
    <iframe width="111" />

    in divs, the /> on end works perfecly but not on iframe i guess


    thx m8!

  6. #5
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Not all tags are self closing tags.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  7. The Following User Says Thank You to BLiZZaRD For This Useful Post:

    falaputo (03-11-2008)

Bookmarks

Posting Permissions

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