problem div html with text view

Hello,

When creating a small HTML text using the Text View node, there is always some unwanted space above the rendered text.

After inspecting it in the browser, I noticed that the node generates two section : one containing the actual content, and another one that includes an empty <p> tag, which appears to be the source of the extra space.

This issue occurs when using <h*> or <p> tags, but not with inline elements like <i>. In the latter case, the <i> tag is wrapped inside the <p>, and no extra space appears.

My goal is to remove this unwanted space. Do you know how this behavior can be controlled or avoided?

On KNIME AP :

In browser :

Thank you for your help !

I’m using KNIME AP 5.5.0 right now but same with all 5.4 versions *

Have you tried injecting CSS to reduce the margin and padding? I suppose the after element is there to reset flows but the default styles of the p-tag are still applied.

1 Like