December 15, 201411 yr I'm working on a site that has the main body of the site with an opacity of 0.8. The problem I'm having is the video embedded into this is also taking on this style. This means the background image can be seen through the video. I can't for the life of me work out how to override this or another way around it to stop the video inheriting the style. The page can be seen here http://bit.ly/1z08fhL Any ideas?
December 15, 201411 yr works fine for me in latest firefox on windows - what browser is it doing it in for you? oh see it's in chrome also it would be a lot more friendly to have the basic controls you usually get with embedded youstube stuff - time bar and the volume at least the video will inherit the opacity of the parent container so you may need to override any inherited attributes guess it's this .opacity {background-color: #000;opacity: 0.8 !important; z-index:10;} and the !important is overriding everything else
December 15, 201411 yr Remove the opacity and use a rgba background value instead, ie. rgba(0, 0, 0, 0.8 ) ; Edited December 15, 201411 yr by Wynn
December 15, 201411 yr Author Wynn you legend, that worked a treat. I didn't know I could use that for opacity! Will do more research into this now! thank you.
Create an account or sign in to comment