Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Cannot Resize the Video in Code Block


gallop

Question

Site URL: https://www.gallopapartments.com/

Hi @tuanphan

I cannot adjust the size or center this video via unlinked files. I don't want to insert a Youtube link via the page's banner because it shows top and botom black borders that I don't want. So I added this code from https://www.amusing.ly/blog/2018/8/10/looping-videos-on-squarespace to the Code block to display my video instead. But I don't know why the video gets out of the frame. Please see picture below. The video is on the home page. Can you show me how to adjust its size and how to center the video?

Website: www.gallopapartments.com

Password: hello

Thank you.

Best,

 

image.thumb.png.185165146256e2ed03a274d7138ac72a.png

Link to comment

7 answers to this question

Recommended Posts

  • 0

Add to Home > Design > Custom CSS

video {
    width: 100%;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment
  • 0

@tuanphan

I tried adding width: 100%, but the results is still the same

This is the code I put in code block. The video is till off center.

<video muted
       src="/s/Testing.mp4"
       width: 100%
       autoplay
       loop>
    Sorry, your browser doesn't support embedded videos.
</video>

image.thumb.png.5caa5a242963b9c9fd8cce32864e5a34.png

Link to comment
  • 0

Add to Home > Design > Custom CSS

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment
  • 0

The video is centered, but the size is too small. When I adjusted its width: 200%, it is off center again. Is it possible to make the video cover full-width of the page and have parallax? Similar to when you insert a YouTube link to Banner setting.

Edited by gallop
Link to comment
  • 0

Add to Home > Design > Custom CSS

section#banner {
  div#block-yui_3_17_2_1_1594006058550_4675, video {
      width: 100%;
  }
  .Index-page-content {
      padding-left: 0;
      padding-right: 0;
      max-width: 100%;
  }
}

Parallax. I'm not sure.

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

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...