Jump to content

Padding around videos on the video page

Recommended Posts

Site URL: https://cals.art

Site password: pump

Good day everyone!

On desktop, the videos I'm hosting on my site are displayed without any margin or border around them, and due to screen size they are often larger than the window itself, requiring scrolling and going into full-screen in order to properly view the content

Is it possible to, on desktop only, add padding or a margin to the videos?

examp.jpg

Link to comment
  • 2 weeks later...
On 8/22/2022 at 6:49 PM, calcal said:

Hi tuanphan, I certainly can: it's https://www.cals.art/videos/v/irm

the password is pump

Thanks so much in advance!

Add to Design > Custom CSS

section[data-section-id="62a73b5142c717679f03bcd2"] {
    padding-left: 30px;
    padding-right: 30px;
}

 

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!)

Link to comment
On 8/25/2022 at 7:30 PM, calcal said:

Thanks so much for your response @tuanphan am I able to prevent this code from applying to mobile?

Thanks again!

Use this new code

@media screen and (min-width:768px) {
section[data-section-id="62a73b5142c717679f03bcd2"] {
    padding-left: 30px;
    padding-right: 30px;
}
}

 

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!)

Link to comment

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.