Jump to content

linebreak in firefox

Recommended Posts


I'm trying to add newlines with code for example:


in chrome the result is as expected:


BUT in firefox (old or newest version it's the same) the result is not correct as below:


I added three <br> but it only makes 1 linebreak, why? How can i solve this? I tried #13#10 and it didn't work on chrome or firefox either.

Link to post
Share on other sites
  • Administrators

If you want to do tricks like these, you should use a TW3DIVHtmlElement instead of a TW3Label. Using br -tags to add space between paragraphs is also not recommended:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br says:

Note: Do not use <br> to create margins between paragraphs; wrap them in <p> elements and use the CSS margin property to control their size.

So, using a div you can do for example:



Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...