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
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
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%
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
Edited by Vision3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now