Okay
  Public Ticket #2873379
Video Background Mobile Alignment
Closed

Comments

  • Crispy0212 started the conversation

    Hi again guys, 

    I am using a video in the row background for the homepage leader here https://www.christopherhurrell.com/

    But in the mobile view, it crops to the centre slice of the video which does not have good content (see screenshot)

    I would like to be able to control the way it crops on mobile view, to select a section over on the right hand side rather than in the centre. 

    Can you suggest how I could do this? 

    Thanks!

    Chris



  •  8,844
    Tahir replied

    Hey Again,

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    @media only screen and (min-width: 1px) and (max-width: 999px) {
        .wpb_row .nectar-video-wrap video {
            width: 100% !important;
            background: #000 !important;
        }
    }

    Thanks


    ThemeNectar Support Team