Skip to content

iFrame border now appears (didn't before today) #34

@cew821

Description

@cew821

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;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions