Container Sizing Issues

In Video Background Pro, the video background is always the size of the container that you specify. This means that if the container is an element with 50 pixels in width and height, that will be the size of the video background. Additionally, if your container's height is 0 pixels or it does not have any content inside of it, the video background will not show up since the container is essentially non-existent.

The best way to control the size of the container is to use CSS. Say you have a container:

1
2
3
<div class="my-video-background">
    ...
</div>

That means that you can use the CSS selector .my-video-background to modify the height of the container:

1
2
3
.my-video-background {
    height: 500px;
}

This code, however, is not very responsive. You could use media queries to take care of that!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.my-video-background {
    height: 500px;
}

@media (max-width: 960px) {
    .my-video-background {
        height: 400px;
    }
}

@media (max-width: 560px) {
    .my-video-background {
        height: 250px;
    }
}

These values are likely not the best, but they illustrate how this could be achieved.

Using Aspect Ratios

My favorite approach is to use aspect ratios, since they are percentage based, making them responsive by nature. However, these require a bit more thought and coding experience. You can take a look at using aspect ratios in css here.