Jump to content

Color Background in Section Not Extending Full Length Until Reload

Recommended Posts

Hi,

Site: candyculver.comPage: https://www.candyculver.com/clients-case-studies-1Bottom of page section: "The rest of the story"

I have a dark blue background on this section on which I have added an expanding Q&A using a markdown block with the code below. The blue background has a gap of white at the bottom the first time you visit the page. After that, it's fine. Can anyone help me with how to make the white gap not happen on initial visit?

Link to comment
  • Replies 4
  • Views 656
  • Created
  • Last Reply

Oh my gosh thank you! :)


<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').css('cursor','pointer');

   $(".markdown-block .sqs-block-content h3").nextUntil("h3").slideToggle();

   $(".markdown-block .sqs-block-content h3").click(function() {$(this).nextUntil("h3").slideToggle();});

   });    </script>


Link to comment
  • 2 months later...

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.