Jump to content

HOW DO I MAKE WHOLE PAGE A CLICKTHROUGH + Make video BG inset equal on both desktop & mobile

Recommended Posts

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

Hi

As per title I have a couple of questions:
1 - HOW DO I MAKE WHOLE PAGE A CLICKTHROUGH or IDEALLY A BUTTON AS OUTLINED BELOW?

I want to be able to click anywhere on the cover page and it links to another of my pages. 
Ideally I'd like to create an actual button that looks like the dummy 'enter' button that is part of the embedded video (i.e. a button that has an overlay composition mode and also shakes a little)


2 - MAKE MY BG VIDEO INSET EQUAL ON ALL SIDES?
My full bleed BG video is slightly cropped at the top and the inset is not an equal boarder around the whole image. I'd like this to be the case on both desktop and mobile. i.e. a video with a boarder that is static and takes up the whole screen.

I'm VERY new to css and web design, so apologies if I'm being pretty stupid! Thanks in advance for your help.

PS I have a business account so can inject custom code. I can also edit the BG video (its just a draft to test with)


Cheers!!

Link to comment
  • 2 weeks later...
  • Replies 2
  • Views 252
  • Created
  • Last Reply

Hi,

Q1. Add to Page Header

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() { 
		$("body").click(function() {
			var link = $(this).text(),
				href = "https://google.com";
			window.location.href=href;
		});
});
</script>

Q2. Add to Page Header

<style>
  img.custom-fallback-image.loaded {
    object-fit: contain !important;
}
</style>

 

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

Archived

This topic is now archived and is closed to further replies.

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