Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #666437

    I added a vimeo video to a color section background. Is it possible to control the vertical alignment of the video? I would like the video top aligned, not center.

    Also, the video is wider than the browser window. Is it possible to have the width fit the browser window?

    #666848

    bump

    #667294

    Hi,

    Could you post a link to the page in question and how you would like to change the layout please?

    Thanks,
    Rikard

    #667455

    Here is a sample page I just made

    Test Page

    The video is a background for a color section with page height set to 100%. The video is vertically centered so the top and bottom are both cut. I want the top of the video to be visible (top aligned).

    Also, and it is not so important in this case, but the video is much wider than the page. Is there a way to control that?

    If a photo is used as a color section background, there are some options to control the size, repeating etc. There are no options for video backgrounds. So can video backgrounds be controlled using CSS?

    • This reply was modified 8 years, 3 months ago by draig.
    #668177

    I’d like a response please

    #668197

    Hi!

    I am redirected to following page. If your page is private, can you please create a temporary admin login and post it here privately so we can look into it?

    Cheers!
    Yigit

    #668215

    Oops… my apologies… I made the page public so you can see it now

    #668237

    Hey!

    Please edit your color section element and give it a unique ID – http://kriesi.at/documentation/enfold/wp-content/uploads/sites/2/2013/12/color-section-ID.png and then add following code to Quick CSS in Enfold theme options under General Styling tab and adjust the value as needed

    #your-unique-id .av-section-video-bg iframe { top: 20%; }

    Cheers!
    Yigit

    #668253

    Hi,

    I just tried your suggestion (using ID = background-video). It has no effect. I changed the % from 0-100 and in between and no change.

    #668255

    Hi!

    Can you please try adding !important rule as following

    #your-unique-id .av-section-video-bg iframe { top: 20% !important; }

    Regards,
    Yigit

    #668269

    Okay… that affects the height, but it only works for a specific browser width. Change the width of the window or preview in tablet size etc and it does not work right (black space at top).

    #668271

    Also, on one of the Enfold Demo projects (business flat demo) there is a page with a background video. It appears that the video is fitting to the window width (except on phones). On my test page, the video is wider than the window so it is cropped (left and right).

    #670082

    Still trying to resolve this problem

    #670624

    Is there no solution to controlling the background video position?

    #671402

    Hi,

    please refrain from bumping into your own thread, otherwise we can’t provide you a faster reply.

    I checked page in question, but can’t see any issues with your background video, as it is resizing fine on different browser screens.

    Add a left value to Yigit’s code and adjust the values until it fits your needs.

    Best regards,
    Andy

    #671416

    I want the background video to vertically align to the top of the container. As is, it vertical aligns center so the top of the video is cut off.

    Yigit’s code manually moves the video, but that is still in relation to being vertically aligned to center so that changing the browser window size changes how it aligns and creates blank space at the top.

    #671445

    Hi,

    sorry, but I can’t see what you’re talking about. Please provide us screenshots of the issue, so we can clearly see what’s going on.

    Best regards,
    Andy

    #671498

    I want to control the positioning of the background video.

    When I put an image as a background, there are positioning options:

    top-left, top-center, top-right
    center-left, center-center, center-right
    bottom-left, bottom-center, bottom-right

    When I put the background video, there are no options. It defaults to center-center and the top of the video is cropped off. I want to be able to control the vertical positioning of the video. In this case, I want top-left

    How do I do that?

    #672008

    Hi,

    you can’t compare it to a background image, cause it’s not an image. However, you can use this code to control it’s position:

    #top #background-video .av-section-video-bg iframe, #top #background-video .av-section-video-bg embed, #top #background-video .av-section-video-bg object, #top #background-video .av-section-video-bg video {
    left: -117px;
    top: 25px;
    }
    

    Adjust as needed.

    Best regards,
    Andy

    #672141

    So what I gather from your reply, is that it is not possible to align a video to top. Is that correct?

    Your suggested solution is basically the same as the previous suggestion above. It does not align to top, but adjusts up and down based on a center align (vertically speaking). The problem with that is it displays differently on different devices and for example on phones there is blank space above the video.

    Thanks for your assistance.

    #672639

    Hi,

    adjust top value in my code as needed, to align it to the top. If you need a different result for smaller screen sizes only, then add media queries, for example:

    @media only screen and (max-width: 767px) {
    #top #background-video .av-section-video-bg iframe, #top #background-video .av-section-video-bg embed, #top #background-video .av-section-video-bg object, #top #background-video .av-section-video-bg video {
    left: -117px;
    top: 25px;
    }}
    

    For more information about media queries: https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#phone-queries

    Best regards,
    Andy

Viewing 21 posts - 1 through 21 (of 21 total)
  • You must be logged in to reply to this topic.