# System.gui.confirm() Message Formatting

**URL:** <https://forum.inductiveautomation.com/t/system-gui-confirm-message-formatting/57039>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 9, 2022, 11:07pm UTC](https://forum.inductiveautomation.com/t/system-gui-confirm-message-formatting/57039 "2022-03-09T23:07:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [March 9, 2022, 11:07pm UTC](https://forum.inductiveautomation.com/t/system-gui-confirm-message-formatting/57039/1 "2022-03-09T23:07:46Z")

</div>

How can format the position and styles of the text in a system.gui.confirm() textbox?  
I’ve got the box so it displays a custom message, but how can I center the message?

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [March 9, 2022, 11:24pm UTC](https://forum.inductiveautomation.com/t/system-gui-confirm-message-formatting/57039/2 "2022-03-09T23:24:56Z")

</div>

It will accept HTML tags for the message, but the centering is a little different than you would think.  
Both of these are using the` <center>` tag  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/3/239d2554a9446d9bf4c33948e2b30b6bba185348.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/c/1cde0ed65adbd9c226e4121f7b965a896024db94.png)

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [March 9, 2022, 11:33pm UTC](https://forum.inductiveautomation.com/t/system-gui-confirm-message-formatting/57039/3 "2022-03-09T23:33:29Z")

</div>

Exactly what I was looking for. Adding at few non-breakable spaces `&nbsp;` to the front of each newline helps center it better (for my message anyway)
