cronol Posted October 8, 2022 Posted October 8, 2022 (edited) Good colleagues, I would need a hand to fix this text so that everything does not appear as rows. Here is the code StringUtil.append(html1, "<tr>", "<td><img src=\"" + item.getIcon() + "\" height=32 width=32></td>" + "<td><font color=\"", color, "\">", item.getName() + "</td>" + "<tr><td><font color=\"00cc66\">Chance: </font>", "<font color=\"ffffff\">" + roundChance + "0%" + "</font></td></tr>", "<td>", (drop.isQuestDrop() ? "Quest" : (cat.isSweep() ? "Sweep" : "Drop")), "</td>", "</tr>"); Edited January 11, 2023 by Vision Quote
0 Zake Posted October 8, 2022 Posted October 8, 2022 Try to give more width to your table data.. Quote
0 arm4729 Posted October 11, 2022 Posted October 11, 2022 (edited) <tr><td widht="250"><font color=\"00cc66\">Chance: </font> try messing with width 250 , try bigger or lower until you fit it. is funny how this is a java topic and you are supposed to already know editing basic htm xD Edited October 11, 2022 by arm4729 Quote
0 melron Posted October 12, 2022 Posted October 12, 2022 The problem is the width of your <td>. By increasing that, you will fix it. But imho remove the "Chance" string (why you need it?) and limit the decimals after the dot to 2. [ICON] 3.18% instead of [ICON] Chance: 3.180% Quote
Question
cronol
Good colleagues, I would need a hand to fix this text so that everything does not appear as rows.
Here is the code
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.