• Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

HTML & CSS Black space above and below video screen

chrisj

Bronze Coder
I'm testing the videojs.com video and have black space horozontally above and below the screen view. I've tried many things to have the full screen fit without the black pace, without success. Any help/suggestion is appreciated. Here's the code:

<video id="js-video" autoplay muted class="video-js vjs-default-skin" playsinline poster="/images/f00.png">
</video>

#js-video {
width:80%;
min-height: 100%;
border: 2px solid blue;
margin: 0 auto;
object-fit: cover;
top:0;
bottom:0;
}
 
Hey there!

You've come to the right place. But could provide us a screenshot of the black space above and below the video, so we have an idea of what you are referring to?

But in the meantime I will try to find a solution to this.
 
Malcolm is right without code its hard. my first thought though is are you showing a widescreen video? If you cannot remove the back from the video with code then logic would tell me that its the video that's the issue :)
 
Top Bottom