IBM Support

Applying text-justify attribute to List Report does not have any effect

Troubleshooting


Problem

When you apply the text-justify attribute, for example distribute-all-lines, to List Report cell(s), the browser does not render this settings appropriately.

Symptom

All justified text will be simply rendered as a default style.

Cause

HTML browser can not recognize the text-align attribute against table elements, <TD> tags. To demonstrate it, you may see no difference between below each HTML text-justify style definitions.

<TABLE>
<TR>
<TR><TD width="100" style="TEXT-ALIGN: justify; TEXT-JUSTIFY: distribute-all-lines">This is "distribute all lines" justify</TD></TR>
<TR height="50"></TR>
<TR><TD width="100" style="TEXT-ALIGN: justify; TEXT-JUSTIFY: inter-word">This is "inter word" justify</TD></TR>
<TR height="50"></TR>
<TR><TD width="100" style="TEXT-ALIGN: justify; TEXT-JUSTIFY: news-paper">This is "news paper" wording justify</TD></TR>

</TR>
</TABLE>

Environment

NOTE: Internet Explorer only. Firefox does not respect the text-align attributes.

Resolving The Problem

Insert "table-layout:fixed" style into <TABLE> tag. To do so in Report Studio, you should check the "fix size" property of List attributes.

  1. Navigate and select List object.
  2. On Properties pane, open Positioning > Table Properties dialog.
  3. Enable "Fixed size" check box.

[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Report Studio","Platform":[{"code":"PF033","label":"Windows"}],"Version":"10.1.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg21591973