Label Text HTML Formatting - Justification

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:

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

produces results as expected, but

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

Does not

However,

<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?

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

1 Like

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

Yeah, and marginally so, IIRC.