Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Clean, Sleek, Valid HTML5, Vimeo embed Codes

Posted on 2013-12-09
3
Medium Priority
?
1,426 Views
Last Modified: 2013-12-09
Hi I'm just trying to get Youtube and Vimeo to show as little garbage as possible on the screen before and after it starts playing as well as when it finishes. Right now I have some vimeo embed code that works perfectly:

<iframe src="//player.vimeo.com/video/46914812?title=0&amp;byline=0&amp;portrait=0" width="601" height="338" frameborder="0" mozallowfullscreen allowfullscreen></iframe>

Open in new window


The problem is it doesn't validate (yes I know there are other issues which I'm fixing at the same time):
html5.validator.nu results

Is there a version of this code that uses CSS to achieve the same result? Any help would be appreciated.

Thanks,
Khellar
0
Comment
Question by:khellar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
Angelp1ay earned 2000 total points
ID: 39705627
<iframe src="//player.vimeo.com/video/46914812?title=0&amp;byline=0&amp;portrait=0" style="width: 601px; height: 338px; border: 0;" allowfullscreen></iframe>

Open in new window


Looks like Mozilla moved to the prefixless allowfullscreen in March.
https://bugzilla.mozilla.org/show_bug.cgi?id=805301
0
 
LVL 1

Author Closing Comment

by:khellar
ID: 39705634
Brilliant! Thank you!
0
 
LVL 11

Expert Comment

by:Angelp1ay
ID: 39705638
For ref: here's the Mozilla iframe attributes list confirming mozallowfullscreen is deprecated:

https://developer.mozilla.org/en-US/docs/HTML/Element/iframe#attr-mozallowfullscreen
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

604 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