Does anyone know a simple html code or css to dim a websites background for a video. if you remember, youtube did this for a little while where you click a button shaped like a light bulb then background fades but the video is still lit up. i want that html code or css.
preferably html
by using javascript you can fade in/fade out the div opacity.
for example:
<script>
document.getElementById('myDiv').setProperty('opac ity',1);
</script>
They generally use a DIV that is 100% of the page, absolutly positioned, one level below that of the video and set to hidden. Javascript is used to trigger it to show