jQuery-TubePlayer-Plugin icon indicating copy to clipboard operation
jQuery-TubePlayer-Plugin copied to clipboard

iFrame border now appears (didn't before today)

Open cew821 opened this issue 12 years ago • 0 comments

Hi! I just noticed that as of today, my YouTube iFrames are appearing with a border (see attached photo):

image Note the white border surrounding the video. This didn't appear yesterday.

This can be fixed by adding the seamless='seamless' attribute to the iFrame tag (I think this works for Chrome/Firefox/Safari) and frameBorder="0" for some versions of IE. See this on StackOverflow: http://stackoverflow.com/questions/65034/remove-border-from-iframe

Since the plugin handles the creation of the iFrame, I wonder if an option could be added to set the 'seamless' attribute? I don't have much experience with javascript, but I would be happy to take a crack at it if it's not an easy fix.

In the meantime, I fixed this using CSS:

    iframe {
      background-color: transparent;
      border: 0px none transparent;
      padding: 0px;
      overflow: hidden;
    }

cew821 avatar Apr 17 '13 15:04 cew821