border shows on firefox

Posted on 2007-10-18
Last Modified: 2013-11-19
Hi,  I'm trying not to show border on an iframe....I have some php code that is genereating random ads.....the border doesn't show on IE but on firefox it does....How could I get rid of this border?  This is the code I have:


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>ad</title>
<script language='JavaScript' type='text/javascript' src=''></script>
<script language='JavaScript' type='text/javascript'>
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("" + phpAds_random);
   document.write ("&amp;what=zone:543&amp;target=_blank");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
</script><noscript><a href='' target='_blank'><img src=';n=af8794bc' border='0' alt=''></a></noscript>

<style type="text/css">

body {
      background-color: #000000;




<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"  frameborder="0" scrolling="no" marginheight="0" marginwidth="0" >

Question by:Charlesfx9
    LVL 28

    Accepted Solution

    I can't see an iframe element. You should set the border to 0  in the iframe element itself, e.g.

     <iframe src="ifr.html"  frameborder="0" style="border-width:0;">
     ( frameborder="0" should work for FF and IE)

    Author Comment

    Thank you're right...I was coding it wrong...I set the frameborder to 0 and it worked.

    Thank you for the support


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
    CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now