Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #448312

    Hi there

    I’ve embedded a video in the advanced layerslider which works fine on desktop but when you go to mobile i’d like the video to fit the full width. I’ve given the video a custom ID and tried the following code but it doesn’t seem to work.

    @media only screen
    and (min-width : 320px)
    and (max-width : 480px) {#home-animation {width:100%;}}

    Any ideas why I can’t get it to work?

    Thanks

    #448454

    Hey raslade!

    Please try adding !important rule as following

    @media only screen
    and (min-width : 320px)
    and (max-width : 480px) {#home-animation {width:100% !important;}}

    Cheers!
    Yigit

    #449721

    Yigit – that worked a treat, thank you.

    #449825

    Hey!

    Great, glad we could help :)

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Embedded video to show 100% on mobile version’ is closed to new replies.