Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 1.07 KB

how-do-i-remove-the-faint-line-around-html5-video-in-ie9.md

File metadata and controls

22 lines (19 loc) · 1.07 KB
title authors intro types categories published updated status
How do I remove the faint Line around HTML5 Video in IE9?
thebeebs
When you select a video by clicking, stop, pause o...
shorts
web
html5at5
2011/12/07 12:00:00
2011/12/07 13:00:00
archived

When you select a video by clicking, stop, pause or play you will see a faint line appear around the video element. This line is intentional so that people navigating your site with a keyboard can see which element them have selected. It’s possible to remove the outline by using the following CSS:

video {outline: 0;} 

However, it probably isn’t a good idea since you will be making your site less accessible and more complicated for keyboard users. Here is a sample of the code in action http://jsfiddle.net/thebeebs/yRHgW/1/