Can we center the text dynamically irrespective of text width within side bar created in the frill?

Hi,

I want to make the text center within the side bar created in frill block generating on each page. 

 Screenshot showing a sidebar with text aligned to the left, not centered, within a frill block on a page.

Currently I have used the below coding in order to make it center of the block

Screenshot of code snippet with a warning message indicating a syntax error in the text alignment function.

Can anyone advise me to make the text center automatically within the block irrespective of text width.

Thanks! 
Shahnawaz



Generated Image Alt-Text
[edited by: Trados AI at 5:27 AM (GMT 0) on 5 Mar 2024]
emoji