&#10 instead of <br> inside text of a button

All that relates to Javascript, CSS, HTML, ....
Post Reply
Posts: 107
Joined: Mon Feb 08, 2021 9:15 pm
Has thanked: 85 times
Been thanked: 46 times

&#10 instead of <br> inside text of a button

Post by Zim »

About the buttons, the problem comes from the use of <br> inside the text string.
This cause a problem in the global HTML code.
To have the expected effect, replace <br> with its equivalent &#10;

So your lines become :
A$ = A$ + button$("<b><big>Quick set to&#10;5 deg.</big><b/>", Qset5, "but1")

A$ = A$ + button$("<b><big>Quick set to&#10;15 deg.</big><b/>", Qset15, "but2")

Thanks cicciocb
Post Reply