# Label Text HTML Formatting - Justification

**URL:** <https://forum.inductiveautomation.com/t/label-text-html-formatting-justification/66063>\
**Category:** Ignition\
**Tags:** ignition80, vision\
**Created:** [November 3, 2022, 1:39pm UTC](https://forum.inductiveautomation.com/t/label-text-html-formatting-justification/66063 "2022-11-03T13:39:57Z")\
**Posts on this page:** 4\
**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:** [November 3, 2022, 1:39pm UTC](https://forum.inductiveautomation.com/t/label-text-html-formatting-justification/66063/1 "2022-11-03T13:39:57Z")

</div>

I've used HTML many times to center text and force breaks at nice spots, and I've just figured out how to align left and right, but it seems very inconsistent.

For instance:

```auto
<html><center>INFLUENT<br>PUMP STATION

```

produces results as expected, but

```auto
<html><right>From Influent<br>Pump Station

```

Does not

However,

```auto
<html><p align = "right">From Influent<br>Pump Station

```

Does  
  
  
What's with the inconsistency?  
Why can't I use that html statement to align right?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 3, 2022, 1:49pm UTC](https://forum.inductiveautomation.com/t/label-text-html-formatting-justification/66063/2 "2022-11-03T13:49:00Z")

</div>

Because `<center>` is valid HTML where `<left>` or `<right>` are not. That is it.

> **[: The Centered Text element - HTML: HyperText Markup Language | MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center)**
>
> The HTML element is a block-level element that displays its block-level or inline contents centered horizontally within its containing element. The container is usually, but isn't required to be, .

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 3, 2022, 3:22pm UTC](https://forum.inductiveautomation.com/t/label-text-html-formatting-justification/66063/3 "2022-11-03T15:22:25Z")

</div>

Swing's embedded HTML support is _mostly_ HTML 3.1, if I remember correctly.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 3, 2022, 3:45pm UTC](https://forum.inductiveautomation.com/t/label-text-html-formatting-justification/66063/4 "2022-11-03T15:45:21Z")

</div>

Yeah, and marginally so, IIRC.
