Have your say in Community Polls: What was/is your greatest motivation to start your own business?

how to use CSS media queries

Solved

how to use CSS media queries

NightyLighty
Tourist
14 0 1

how can I create the section twice and optimise the video for each device? one for desktop and one for mobile i want different size videos for the both of them the mobile one being 3:4 and desktop being 4:3. I know nothing about coding I was wondering if anyone could help me.

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
9076 2167 2677

This is an accepted solution.

Thanks for the info, check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

@media only screen and (min-width: 749px){
deferred-media.video-section__media.deferred-media.gradient.global-media-settings {
    --ratio-percent: 50% !important;
    width: 80%;
    margin: auto;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1720391016439.png

    Note: you adjust the size you like.

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 6 (6)
NightyLighty
Tourist
14 0 1

I'm sorry I still don't understand what all this means I would greatly appreciate if you could go more into depth with it thank you in advance 

Made4uo-Ribe
Shopify Partner
9076 2167 2677

Hi @NightyLighty 

Can I take a look, would you mind to share your store URL? Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
NightyLighty
Tourist
14 0 1

https://nightylighty.co/ if you go on desktop you'll see that the video is too large while on mobile it looks fine the desktop is what I would like to change 

 

Made4uo-Ribe
Shopify Partner
9076 2167 2677

This is an accepted solution.

Thanks for the info, check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

@media only screen and (min-width: 749px){
deferred-media.video-section__media.deferred-media.gradient.global-media-settings {
    --ratio-percent: 50% !important;
    width: 80%;
    margin: auto;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1720391016439.png

    Note: you adjust the size you like.

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
NightyLighty
Tourist
14 0 1

do I copy and paste it under the layout/theme.liquid section?

NightyLighty
Tourist
14 0 1

I got it! thank you so much I greatly appreciate your help.