Forum Discussion

Banjrman's avatar
Banjrman
Copper Contributor
Mar 22, 2022

Collapsible section - header text aligning center rather than left?

I am able to create collapsible sections without any issues. However, the default alignment for the text in the Section Name area is center aligned for some reason. See screenshot below.

 

All the tuts I've watched show the header text aligned left by default.

 

Does anyone know how I can change the alignment for Section Name to left aligned by default? Thanks for any suggestions!

 

  • rgwinn's avatar
    rgwinn
    Brass Contributor

    Banjrman 

    I think Microsoft must have rolled out a change because all of mine were left-aligned until today and now they are showing as being centered.  It is driving me crazy that they are centered but the text underneath it is left aligned.  Does anyone know of a way to fix this, possibly with JSON?

     

    Thanks.

    • Banjrman On my SharePoint site, all the section headings are left aligned only:

      Microsoft must have released new update & because of that section headings are now center aligned. I will suggest you to raise a support ticket with Microsoft & log this issue.

      1. Get Support - Online Support 
      2. SharePoint: Collapsible sections on modern pages 

      Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

      • CKWGA's avatar
        CKWGA
        Iron Contributor

        ganeshsanap I'm having this same issue - with new SharePoint posts, the headings are center-aligned. With existing posts, the headings are left-aligned. Did you get it resolved?

         

         

  • Hi Banjrman 

     

    oh right, same here, default are left...and i can't change it to the right side, only the icon.

     

    Can you check it with a new site?

    And a new page?

     

    Regards, Dave

    • Banjrman's avatar
      Banjrman
      Copper Contributor

      DaveMehr365 

       

      I created a new page in the same SP site, and the collapsible sections are still aligned center.

       

      I added a new page to a different SP site, and the Section Name is aligned left. See screenshot below.

       

      So it appears that there's a setting somewhere that can be changed.... ??

       

      • Hi Banjrman 


        Oh ok...hmm, sorry, i don't know a setting for this, but i think with scipt it's possible, but not my topic 🙃

         

        It's possible, that this was an classic site?

         

        Regards, Dave

Resources