Jump to content

Display Video in Vertical Format in One Section Only

Go to solution Solved by tuanphan,

Recommended Posts

Hello,

I added several vertical videos to a page on my client's site today using code I found in another post on this forum. It looks great! However, in the section below the one I mentioned above, I have other videos that used to be in horizontal format, but since I added the code, are now in vertical format. These are video files but I used a square image as the visual. Is it possible to add code so that only the videos in the first section I mentioned are vertical, and all the rest are horizontal? Please see screenshot. Thank you!

https://hollypalmieriradio.com/portfolio

HP Portfolio.png

Link to comment
  • Replies 2
  • Views 178
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

You can change this code


.sqs-native-video .native-video-player {
    padding-bottom: 100% !important
}

to this


section[data-section-id="66d6258f641ceb536eaf128a"] .sqs-native-video .native-video-player {
    padding-bottom: 100% !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!)

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.