I followed your use case and created an example on my Pega 7.2.1 system.
I modified OOTB section "pxUIGalleryBasicGrid" Grid Repeat Layout 2 and added an title "This is a test" in the "Action Top". (make the width of the title field is the same as the width of the repeating grid table). In the Label configuration "Cell inline style", I entered "text-align:center". see attached screenshot 1.
During the run time (launch Grid example below), I can see the title is displayed in the center. see attached screenshot 2.
Designer Studio -> User Interface -> UI Gallery -> Grid example.
Thanks Susan for your help.You solution will work but we should not use inline-style in section as per Pega guardrail,it throws warning .Also I am looking for reusability so that i define once in the skin and use it everywhere when required.
Thanks Mounika but if i opt your solution then in every label i have to do this change which is not best practice so we need to define style at central place like skin so that it can be used everywhere..
Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.
You may also refer this discussion link as a reference in the new thread.