?
Solved

Clean, Sleek, Valid HTML5, Vimeo embed Codes

Posted on 2013-12-09
3
Medium Priority
?
1,405 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Suggested Courses

777 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