Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1189675

    On the site http://mckee-new-co-uk.stackstaging.com/ we need the video in the background to fill the height and width of the container no matter the size of the browser window.

    If you make the window smaller, we start to get black at the top and bottom, this needs to fill no matter what – how is this achieved?

    #1190806

    Hey whdsolutions,

    Thank you for the inquiry.

    Try to set the Styling > Background Video > Video Aspect Ratio to 16:9 instead of 4:3. That should make the video cover the whole section.

    Best regards,
    Ismael

    #1190869

    That does not work either it causes black parts on the sides and the top and bottom!

    I just need the video to stretch top and bottom, left and right no matter the size of the window

    Or simply overflow if neccesary!

    • This reply was modified 4 years, 9 months ago by whdsolutions.
    #1191426

    Hi,

    The video itself actually contains the black bars or space. You may have to edit the video and remove the bars, then upload it again. (see private field)

    Or try to use this css code to stretch it.

    #top #av_section_1 .av-section-video-bg iframe, #top #av_section_1 .av-section-video-bg embed, #top #av_section_1 .av-section-video-bg object, #top #av_section_1 .av-section-video-bg video {
    	width: 1988px !important;
    	left: -292px !important;
    	height: 120vh !important;
    }

    Best regards,
    Ismael

    #1191534

    “The video itself actually contains the black bars or space. ”

    so re-render your film : https://webers-testseite.de/wp-content/uploads/testbackground.mp4
    this is than 16/9 Format.
    and give to the color-section : “Custom-height in % …” : 56%
    See: https://webers-testseite.de/fullvideo-background/

    #1191704

    Hi,

    Thanks for helping out @guenni007, did you have any luck with that @whdsolutions?

    Best regards,
    Rikard

    #1191777

    All good now, thanks for all your help!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Video to fill container height and width’ is closed to new replies.