Justify text


Buen día.

Podrían ayudarme para saber cómo justificar el texto.

@mosucaa, it seems that the html only supports <p style="text-align:center">No</p> (central alignment) while it does not support <p style="text-align:right">Don't know</p> (right alignment) or even <p style="text-align:justify">Why is justify not working?</p> (justify alignment).

Pinging in here @Xiphware, who should be able to explain more on this.

See Form Styling for what is/not supported in terms of formatting text. Specifically, in relation to inline html, please note:

Many Markdown implementations support inline HTML, but Collect only supports a small subset of HTML elements. Support of HTML is further limited because:

  • Your exact Android device, operating system version, and other device-related factors will affect what HTML can be rendered, and how it is rendered.
  • HTML is not supported by other form rendering tools in the XForms ecosystem. For example, HTML elements that work in Collect may not work in Enketo.

For these reasons, we do not recommend using HTML in forms (except the <span> element noted below).

[emphasis added]

1 Like