Thinner Video on Desktop and button add - DAWN THEME

Thinner Video on Desktop and button add - DAWN THEME

andrew72
Excursionist
30 0 7

Hello, 

 

I am trying to make my video thinner but still central focused on desktop, I like how it looks on mobile.

 

I also want to be able to add a button.

 

Video at top of page: https://obadiahcoffee.com/pages/seasonal-subscription

 

I created a custom section called "full width video".

 

Thank you.

Reply 1 (1)

DaisyVo
Shopify Partner
4436 492 587

Hi @andrew72 

To make your video thinner but still centered on desktop while maintaining its look on mobile, you can adjust the video container's width using CSS. Here's how to do it:

  1. Add custom CSS for your video container:

.full-width-video {

   max-width: 800px;  /* Adjust width as needed */

   margin: 0 auto;    /* Center the video */

}

 

@media (max-width: 768px) {

   .full-width-video {

      width: 100%;  /* Keep full width on mobile */

   }

}

 

  1. To add a button below the video, you can use HTML and CSS:

<button class="video-button">Subscribe Now</button>

And style it:

 

.video-button {

   display: block;

   margin: 20px auto;

   padding: 10px 20px;

   background-color: #000;

   color: #fff;

   border: none;

   cursor: pointer;

}

 

This keeps your video responsive and centered on desktop, while the button will appear below the video.

 

If you have other questions, I am willing to answer them more.

 

Best regards,

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution