Jump to content

Code that only affects desktop version. (not mobile)

Go to solution Solved by tuanphan,

Recommended Posts

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

Hello,

I added some code to my homepage that moved the navigation buttons and social links up the page on a desktop view. As a result it has altered the mobile version of the homepage as shown.

Here is the code I used:

<style>

#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;
}
</style>

 

Does anyone know how I can alter this code so that it doesn't affect the mobile version of the homepage?

 

 

Mobile.png

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.