Jump to content

Centering FAQ Dropdown Menu

Recommended Posts

Site URL: https://www.shopmaisaguam.com/faqs

I created an expandable FAQ dropdown menu and want the questions as well as the answers to be center-justified but I can't seem to find where or what code I need to input to get it to look that way.

I used the following two codes to achieve the current result:

Quote

Page Header Code Injection


<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>$(document).ready(function(){
    $('.markdown-block .sqs-block-content h5').addClass('ui-closed').css('cursor','pointer');
    $(".markdown-block .sqs-block-content h5").nextUntil("h5").slideToggle();
    $(".markdown-block .sqs-block-content h5").click(function() {
      $(this).nextUntil("h5").slideToggle();
      $(this).toggleClass('ui-closed ui-open');
    });
  });
  </script>

Quote

Design -> Custom CSS


.markdown-block p {
  margin-left: 15.em;
}
.markdown-block .ui-closed:before {
  font-family:monospace;
  content:"";
}
.markdown-block .ui-open:before {
  font-family:monospace;content:"- ";
}


element.style {
}

Any and all help is most appreciated! 

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Try add to Code Injection Header

<style>
.markdown-block * {
	text-align: justify;
}
</style>

also, you can use this plugin to create FAQ Accordion, easy to install/customize without coding skills.

or use this free tool to add FAQ Accordion Dropdown.

faq-dropdown1-min.thumb.png.169b54f9eee25b2ac70fb0ac2179df21.png

faq-dropdown2-min.thumb.png.a6f09cfc5360fb3bd95c5448f03be733.png

Edited by tuanphan

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.