Created
June 19, 2012 08:13
-
-
Save octave/2952954 to your computer and use it in GitHub Desktop.
One pixel border around a video tag
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
| <div id="border_wrap"> | |
| <video width="640" height="360"></video> | |
| </div> | |
| <style> | |
| #border_wrap { | |
| width:640px; /* Same width than the video tag */ | |
| height:360px; /* Same height than the video tag */ | |
| padding:2px; /* If you want a 1px border add a padding of 2px, 2px border / 4px padding, etc */ | |
| background-color:red; /* Change the color you want for the border here */ | |
| } | |
| </style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment