Jump to content

half-page width for background video on desktop

Recommended Posts

Site URL: https://www.opalbuild.us/

Hello! I'm trying to have a background video just take up the left half of the page, so that text can accompany it on the right side of the page. Can someone help me with some code to do this? (this setting wouldn't apply to mobile, just desktop and tablet)

Right now, the video is hosted on vimeo. I'd like it to be a background video instead, to get rid of the player controls and to have it autoplay. (alternatively, maybe this can be achieved with code?) 

Screen Shot 2022-01-23 at 8.31.12 AM.png

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

#1. You mean increase video width & remove white padding around video?

#2. Try adding video with Code Block > use this code

<video width="100%" height="240">
  <source src="movie.mp4" type="video/mp4">
  Your browser does not support the video tag.
</video>

replace movie.mp4 with direct video url

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 1 year later...
On 2/28/2023 at 5:41 PM, floren_dina said:

Hello @tuanphan,

how can I reduce the height of the video container? 

www.psk-legal.de/home-2

PW: psk_ws2022

Screenshot 2023-02-27 at 14-09-01 Pachmann Schuback Khan.png

Hi,

Desktop or mobile?

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.