When trying to display a YouTube video in a popup box upon clicking a link, I encountered an issue:
One user reported that the video doesn't appear in Firefox, although it works fine for me when tested in the same browser.
I'm wondering if there might be a specific setting in Firefox causing this problem for the other user?
Here is the code snippet used for creating the modal window with HTML5 & CSS3:
<!DOCTYPE html>
<head>
<title>Creating a modal window with HTML5 & CSS3</title>
<style>
.modalDialog {
/* CSS styling */
}
/* more CSS styles */
</style>
</head>
<body>
<a href="#openModal">Open Modal</a>
<div id="openModal" class="modalDialog">
<div>
<a href="#close" title="Close" class="close">X</a>
<iframe width="560" height="315" src="http://www.youtube.com/embed/98H2x9BjUxE?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</body>