Hi guys,
Can anyone tell me how to reduce the gaps on my FAQ page
- Between the Headers and the questions
- Between the questions and the answers
- Between one section and another?
Think the white space is a bit ugly.
Also, bonus points if anyone can tell me how to make the sections collapsible.
Thanks! 
1 Like
Hi!
Add the rules to the bottom of theme.css
/* Margin- FAQ header */
.grid__item.medium-up--three-quarters.medium-up--push-one-eighth .section-header{
margin-bottom: 0px;
}
/* Margins- h2*/
.index-section.index-section--faq {
margin-top:20px;
margin-bottom:0px;
}
/* Margins- b/w h2 & answers */
.index-section.index-section--faq .h2{
margin-bottom: 0px;
}
Result:
- To make sections collapsable would require code customization , for this task, itβs best to reach out to https://experts.shopify.com/
1 Like
@houssamalissa
Please add the code at the bottom of your assets/theme.css file.
@media only screen and (min-width: 590px){
#shopify-section-page-faq-template .h2, #shopify-section-page-faq-template h2{ margin: 0 0 10px !important; }
#shopify-section-page-faq-template .index-section--faq { margin: 20px 0 0px !important; }
}
Hope this works.
Thanks!
1 Like
Hi guys,
Both these codes make things look a lot better, thank you!! However what still remains is the very large gap between the bottom of the text and the top of the next question:
Do you know what line I can add in to fix that?
You could try adding this rule
.rte.collapsible-content__inner--faq{
padding-bottom: 0 !important;
}
Also, you need to manually remove the redundant
elements on some of the answers. Those are adding extra space.
1 Like
Good to hear that the issue is solved!
1 Like