Question:

How do i remove iframe borders?

by  |  earlier

0 LIKES UnLike

Hi i recently posted a question asking how to get rid of the borders around the media players on this link -

http://www.djtempo.co.uk/page.php?21

the one response i had told me to use this code. which didnt work, ill post both iframe codes in the hope one of you can spot my mistake, thanks.

<iframe name="I1" src="http://djtempo.co.uk/media.html" width="277" height="279" scrolling="no" border="0" frameborder="0" style="background-color:#000000"><iframe name="I1" src="http://djtempo.co.uk/media2.html" width="277" height="279" scrolling="no" border="0" frameborder="0" style="background-color:#000000"></ifram...

<iframe name="I1" src="http://djtempo.co.uk/media.html" width="277" height="279" scrolling="no" border="none" frameborder="none" style="border: none;"><iframe name="I1" src="http://djtempo.co.uk/media2.html" width="277" height="279" scrolling="no" border="none" frameborder="none" style="border: none;"></iframe>

 Tags:

   Report

4 ANSWERS


  1. take the &quot;border=0&quot; from the code and add frameBorder=0

    at style add border=0px solid #-000000;

    should be something like this:

    &lt;iframe name=&quot;I1&quot; src=&quot;http://djtempo.co.uk/media2.html&quot; width=&quot;277&quot; height=&quot;279&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;background-color:#000000;border=0... solid #000000;&quot;&gt;


  2. Probably a border on the flash video

    Hope this helps

    Dan

  3. Didn&#039;t see any borders using Firefox nor IE, but did see a lot of coding errors:

    http://validator.w3.org/check?verbose=1&amp;...

    iFrames are ok.  Don&#039;t know why people say they are not.  Even frame pages are okay if properly coded.

    Ron

  4. I don&#039;t see a border around the iframe. The colour you are seeing is of your media.html file. Set the background colour of that file to the same as the page that you are displaying it in. Then it will display as it should

    Iframes are generally nasty though - do you explicitly need them?

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.