Web Analytics Made Easy -
StatCounter could use some iframe help please... - CodingForum

Announcement

Collapse
No announcement yet.

could use some iframe help please...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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

    Comment


    • #3
      I fixed it... the problem was in the template system for the news script.

      THIS THREAD CAN BE DELETED.

      Thanks.

      Comment


      • #4
        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

        Comment


        • #5
          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.

          Comment


          • #6
            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

            Comment


            • #7
              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.
              PHP Weekly - A PHP Developers Resource
              PHP 5.1.4 and Ruby on Rails web hosting
              Moderator of PHP and Work offers and Requests
              Install Apache/PHP/MySQL
              (by marek_mar) | TinyPlugin Architecture

              Comment


              • #8
                hehe... ok you guys win.

                Comment

                Working...
                X