Jump to content

Help with setting breakpoint for Split Navigation (7.1)

Recommended Posts

Site URL: https://star-fennel-h9p3.squarespace.com/

Hey!

I have a split navigation on my site. I'm using both CSS and Code injection

the issue i'm having is setting the breakpoint - once the screen is smaller the logo ends up aligning to the right. 

 

Code Injection: 

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<script>
    $(document).ready(function(){
    $('.markdown-block .sqs-block-content h3').addClass('ui-closed').css('cursor','pointer');
    $(".markdown-block .sqs-block-content h3").nextUntil("h3").slideToggle();
    $(".markdown-block .sqs-block-content h3").click(function() {
      
      $(this).nextUntil("h3").slideToggle();
      $(this).toggleClass('ui-closed ui-open');
      });
    });
    </script>

 

CSS:

/*Make split navigation*/
.header-nav {
    position: absolute;
    top: 50px;
    bottom: 0;
    margin-top: 0!important;
    margin-left: -50px!important;
}

.header-nav-item:nth-of-type(3) {
    margin-right: 440px!important;
}

.header-title-logo a {
    z-index: 1000;
    position: relative;
}

 

 See screenshot of issue!

Thanks so much!

Screenshot 2021-06-18 123728.png

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

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.