Jump to content

Video Aspect Ratio for Mobile on Courses

Go to solution Solved by tuanphan,

Recommended Posts

Posted

I have doubts about the aspect ratio of videos in mobile, you see the black fringes at the top and bottom of the video? Are they necessary? they are just taking up space, can I eliminate them?

web: https://www.suenacarajo.com/
pass: carajo

Also, 2 more questions:
1) The name of the course is not showing up above the video, as it should. How can I make it appear?
2) On Mobile, the Next Lesson section sticks to the bottom, even after I scroll down pass the footer, can this be adjusted to stop before the footer? It looks weird seeing the section after the footer

 

Screenshot2024-02-07at1_19_22PM.thumb.png.4272da50cb2810cb633c29e19012deec.png

Screenshot 2024-02-07 at 1.19.38 PM.png

Posted

No, I put a cover/thumbnail, but I would like for the thumbnail or video to respect the video aspect ratio. If you play the video, you will still see the black fringes.

Can you help?

  • Solution
Posted

Try this code to Website Tools > Custom CSS

/* Course - mobile - video */
@media screen and (max-width:767px) {
.course-item__lesson-content .course-item__video-container {
    height: 250px !important;
    min-height: unset !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

  • 2 weeks later...
  • 3 months later...
Posted
On 2/24/2024 at 3:46 PM, tuanphan said:

Try this code to Website Tools > Custom CSS

/* Course - mobile - video */
@media screen and (max-width:767px) {
.course-item__lesson-content .course-item__video-container {
    height: 250px !important;
    min-height: unset !important;
}
}

 

@tuanphan Thanks for this code. Is there a way to make the height automatically adjust to the video height?

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.