Closed afarber closed 4 years ago
Nevermind - I have found the solution:
ContainerTag div = div(
h2("List of players").attr("align", "center"),
table(
thead(
tr(
th("Elo"),
th("Name"),
th("Photo")
)
),
tbody()
).withId("ratingTable").withClass("stripe").withStyle("min-width: 480px;"),
h2("List of games").attr("align", "center"),
div(
img().withSrc("/images/loader.gif").attr("width", 60).attr("heigh", 60)
).withId("gamesChart").withClass("gchart")
);
Good evening,
I have 2 questions for j2html 1.4.0 please:
When trying to translate the following piece of HTML:
How to create
h2().withAlign("center")
(method not found) ?And how to specify the img dimensions? There is no
img().withWidth()
Here is what I've tried sofar:
Thank you Alex