Link with Icon to the right of the caption

Is it possible to have the icon display to the right of the caption in a link component?

I have the following code…

Link link = new Link(session.getMessage("payment-make-payment"), new ExternalResource(sb.toString()));

The icon shows to the left of the caption, but I want to display it after the caption.

Should be very easy, just needs a little bit of CSS:

First add a new style name for the link, e.g. “icon-on-right”. Then add the following CSS to your theme:

.icon-on-right img {
    float: right;