Jump to content

Button & Social link positioning.

Recommended Posts

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

Link to comment
  • Replies 5
  • Views 406
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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 (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

My testing with 150% zoom in

image.thumb.png.39b8eb7ebdf0b12c50dbf13c5e2dc28b.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
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!)

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.