Skip to content

Instantly share code, notes, and snippets.

@rymai
Created April 18, 2011 12:02
Show Gist options
  • Save rymai/925199 to your computer and use it in GitHub Desktop.
Save rymai/925199 to your computer and use it in GitHub Desktop.
SublimeVideo: Add a shadow around the video tag (snippet)
<!-- 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