Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1369397
    philipfemo
    Participant

    Hi X Theme!

    If you look at this webpage I am editing.
    I am having a problem with the resizing of the video. I would love for it to act like my images so I can use media queries and max-width to dictate the size and position of the video – just like i am doing with my images.

    How do I go about this? It is weird that the video is responsively resizing.
    A sidenote that i thought was weird is the native res for the video is 1920×1080 – but when I insert the video max-width:1100px; / 700px; only makes the video go to 809 and 600ish instead of taking the maximum width of 1100px and 700px…

    Credentials in comment if you need to look at queries etc. (I realize they could have been written more efficient, but it was my first attempt at queries.. bare over with me)

    BR
    Philip

    #1369399
    philipfemo
    Participant
    This reply has been marked as private.
    #1369997
    Rupok
    Member

    Hi Philip,

    Looks like you are referring the background video. You can’t control the dimension of a video background since it will depend on the content and section height. So you can actually shrink the height of the section by eliminating space for mobile with media query.

    Thanks!

    #1370452
    philipfemo
    Participant

    Hi Rupok – I am sorry, the Link was incorrect it is http://www.getbundl.com/test and I am referring to the video in 3rd section. I replaced the background video in the beginning with a slider to optimize for mobile.

    #1370515
    Rupok
    Member

    Hi Philip,

    Thanks for writing back with correct link. I am bit confused what you are trying to achieve for media query but you can try something like this to control the width of the column that contains the video :

    @media only screen and (max-width: 767px) {
    #thirteenplus .x-column.x-sm.left_img_col {
        width: 100% !important;
        max-width: 700px;
        margin: 0 auto;
        float: none;
    }
    }

    Now you an adjust the selector and media query.

    Cheers!

    #1375240
    philipfemo
    Participant

    Hi Rupok,

    Thank you for your reply. I managed to make it work – but I think you may have misunderstood what I meant or my formulation was not too good 😀

    Br

    #1375541
    Joao
    Moderator

    Glad to hear it you made it work.

    Cheers

  • <script> jQuery(function($){ $("#no-reply-1369397 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>