Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

stop opacity to embedded video

Featured Replies

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?

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

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.