Black Bars in iframe Rumble vid at 600px
-
I’m displaying a Rumble video on my homepage with EmbedPress Lite. There was a “black bars” effect at pretty much every screen size. I tinkered around and came up with the following custom CSS which works at every width except at 600px and below:
.elsm-vid-loop iframe { max-height: 33vh !important; }
@media only screen and (max-width: 800px) { .elsm-vid-loop iframe { max-height: 28vh !important; } }
I then added the following to try to address the 600px breakpoint, but it doesn’t respond at all. I believe I’m either targeting the wrong selector or property:
@media only screen and (max-width: 600px) { .elsm-vid-loop iframe { max-height: 18vh !important; } .ose-embedpress-responsive > iframe { height: unset !important; } }
Steps to Reproduce:
- Go to https://elijahlisttv.org/ in Chrome
- Right-click to enter Dev Tools Inspector mode
- Hit “CTRL + SHIFT + M” on Windows to inspect as a mobile device
- In the “Dimensions” dropdown select “Responsive”
- Set the width to 600 px
|| EXPECTED BEHAVIOR:
- The video in the EmbedPress widget should span the full width of its container
- The height should auto scale proportional to the the width
- There should be no “black bars” effect on either side, nor on left and right
- There should be no distortion in the video thumbnail
|| ACTUAL BEHAVIOR:
- There is a “black bars” effect on either both sides of the video, taking up about 50% of the width
- The video thumbnail appears about 50% smaller than the width that is available
|| AFFECTED URL: https://elijahlisttv.org/
The page I need help with: [log in to see the link]
- The topic ‘Black Bars in iframe Rumble vid at 600px’ is closed to new replies.