Created
April 18, 2011 12:02
-
-
Save rymai/925199 to your computer and use it in GitHub Desktop.
SublimeVideo: Add a shadow around the video tag (snippet)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Inside the <head> tag --> | |
<style type="text/css"> | |
.sublimevideo_shadow_box { | |
-webkit-box-shadow:rgba(0,0,0,0.5) 0 3px 15px; | |
-moz-box-shadow:rgba(0,0,0,0.5) 0 3px 15px; | |
box-shadow:rgba(0,0,0,0.5) 0 3px 15px; | |
} | |
</style> | |
<!-- Inside the <body> tag --> | |
<div class="sublimevideo_shadow_box"> | |
<video class="sublime" width="640" height="360" poster="posterframe.jpg" preload="none"> | |
<source src="video.mp4" /> | |
<source src="video.ogv" /> | |
</video> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment