0

I want to be able to display a series of skill tags in a horizontal order such as JSP XML Java C# etc.

Update: Ok,I did try what the commenter suggested. It seems to be another issue.

Here are two examples of the issue with and without a thymeleaf directive.

Ok, So if I explicitly add the items in html, it behaves as I want enter image description here

This gives this result. This is what I want.

enter image description here

But if I do it as a th:each, then each item is on a separate line enter image description here

And this gives the following:

enter image description here

What should I change?

ANSWER: OK, found the issue. You need to put the th:each on the right element.

enter image description here

Note that it is on the li and not the ui. That makes it work.

EvilJinious1
  • 2,773
  • 6
  • 43
  • 63
  • 1
    The CSS styles associated with the list-skills. That has nothing to do with spring or thymeleaf. – JB Nizet Dec 29 '15 at 20:13
  • I made an update to the original question. If I put n
  • items in the
      then they are all printed in the same line as I want. With the thymeleaf each they explicitly go to a second line
  • – EvilJinious1 Dec 30 '15 at 01:43
  • found the answer and placed it in the question – EvilJinious1 Dec 30 '15 at 01:50
  • @EvilJinious1 You can post the answer and accept it after two days of posting. Please don't post solutions in your question. ;) – Lucky Jan 05 '16 at 07:49
  • Because it was marked as a duplicate, it won't let me actually answer it. – EvilJinious1 Jan 12 '16 at 19:46