Jump to content

Button & Social link positioning.

Recommended Posts

Posted

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

Hello!

Been working on my homepage for this website. I added some code to disable the scroll as I am only displaying a simple menu. The home page looks fine displayed on my desktop, however on my laptop the buttons are all the way at the bottom of screen and the social links are out of screen. Note that:

  • The scale on my laptop is set to 150% which is recommended for that screen size.
  • There is a spacer above the 3 buttons.

I was wondering if there is any way I can position the buttons and social links relative to the border so that no matter what screen you look it, they will be in the same position.

I hope I explained that clearly enough. Thank you.

 

Desktop.png

Laptop.jpg

  • Replies 5
  • Views 573
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted
3 hours ago, jbbbbbbbbb said:

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

Hello!

Been working on my homepage for this website. I added some code to disable the scroll as I am only displaying a simple menu. The home page looks fine displayed on my desktop, however on my laptop the buttons are all the way at the bottom of screen and the social links are out of screen. Note that:

  • The scale on my laptop is set to 150% which is recommended for that screen size.
  • There is a spacer above the 3 buttons.

I was wondering if there is any way I can position the buttons and social links relative to the border so that no matter what screen you look it, they will be in the same position.

I hope I explained that clearly enough. Thank you.

 

Desktop.png

Laptop.jpg

Try

#block-yui_3_17_2_1_1649471149246_4050 + .row {
  position: absolute;
  top: 40%;;
  left: 50%;
  transform: translateX(-50%);
  width: 100% !important;
  display: flex;
}

#block-yui_3_17_2_1_1649369302889_3332 {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
}

section[data-section-id="624cd66202f62e6c706a6d69"] .sqs-layout  > .row > .col {
  position: relative;
}

Let me know how it goes on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

Thank you bangank36 that worked really well. It does however do this to the mobile version of the website hahaha. Is there some code that will position the buttons vertically and the social links bellow the buttons?

Mobile.png

Posted
On 4/22/2022 at 6:12 AM, jbbbbbbbbb said:

Thank you bangank36 that worked really well. It does however do this to the mobile version of the website hahaha. Is there some code that will position the buttons vertically and the social links bellow the buttons?

Mobile.png

Don't remove any code in your current code

Add this to Design > Custom CSS

@media screen and (max-width:767px) {
#block-yui_3_17_2_1_1649471149246_4050 + .row {
    flex-direction: column;
}
div#block-yui_3_17_2_1_1649369302889_3332 {
    position: fixed;
}}

 

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

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.