Support Article
Section included displays incorrectly in a paragraph
SA-98469
Summary
On including a section in a paragraph which displays content as a bullet or numbered list, the included section moves down from the bullet. This occurs in the Internet Explorer and Firefox browsers.
The included section displays as below in the Internet Explorer or Firefox browsers:
Error Messages
Not Applicable
Steps to Reproduce
- Configure a Rich Text Editor (RTE) with an unordered list.
- Include the <span> tag in each list.
- Include a section using the <pega:include> tag in the Span elements.
Root Cause
An issue in the custom application code or rules.
By default, Span elements in HTML have an inline style. However, the section included within the Span caused the generation of DIV elements, which are block level elements. Thus, DIV moved to the next line.
The elements display according to the browser's rendering logic. Hence, in the Internet Explorer and Firefox browsers, the section Included display in the next line.
Resolution
Perform the following local-change:
Add the display:inline-block; style attribute to the Span elements.
<li><span style="color:#5b6670;display:inline-block;"><pega:include name="DisplayHoverMsg" type="Rule-HTML-Section"><pega:param name="ParaMessage" value="sdlfjsdlfjs"><pega:param name="Show" value="fgljxifgsjfs"></pega:param></pega:param></pega:include></span></li>
Published January 14, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.