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 8 of 8
  1. #1
    New Coder
    Join Date
    Nov 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts

    could use some iframe help please...

    Ok so I have an iframe loading a page... this page is a news script that I am using (fusionNEWS). When the page is included inside the iframe there is a white border around the content. To see what I mean click here. This only happens in IE though. In FireFox where I also tested it this is how it looks this is how I want it to look.

    My code for the iframe is as follows:

    <iframe src="news/news.php" allowtransparency="true" height="300" width="612" name="content" frameborder="0" scrolling="auto">
    <?php
    include "news/news.php";
    ?>
    </iframe>

    Does anyone know how I could get it to look how it does in FF in IE? I can also post code from the news.php page that is being loaded in if that would help anyone.

    Thanks in advance for any help.

  • #2
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    put this in the head of the page being served via the iframe. (or preferably in its style sheet)
    Code:
    <style>
    body{padding:0;margin:0;}
    </style>

    I take no responsibility for the above nonsense.


    Left Justified

  • #3
    New Coder
    Join Date
    Nov 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I fixed it... the problem was in the template system for the news script.

    THIS THREAD CAN BE DELETED.

    Thanks.

  • #4
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Just so you know, threads don't get deleted once the problem's been fixed IF that happened there'd be hardly any posts in the forum

  • #5
    New Coder
    Join Date
    Nov 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Nightfire
    Just so you know, threads don't get deleted once the problem's been fixed IF that happened there'd be hardly any posts in the forum
    I understand that... but there was nothing in this thread that would help anyone else. I basically fixed my problem (as it wasnt a problem with the code it was a template bug). I doubt anyone reading this with the same problem as me would benefit from reading the thread. So I just figured Id clean up the clutter, but if it stays than thats fine too.

  • #6
    Regular Coder
    Join Date
    Feb 2004
    Location
    Florida, USA
    Posts
    275
    Thanks
    0
    Thanked 0 Times in 0 Posts
    WRONG!!!!

    Nick, i'm sorry to say, but this thread helped me fix my own problem, true it wasn't the same as yours, but i leaned how to fix mine

    Thanks
    Psycho

  • #7
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Also, say someone was having a similar problem, it might give them the idea of checking the template system before trying other methods of solving their problem.

  • #8
    New Coder
    Join Date
    Nov 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hehe... ok you guys win.


  •  

    Posting Permissions

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