font-awesome to be inserted in value="<spring:message text="View List"/>">

116 views Asked by At

im trying to insert some font-awesome inside here

<form action="/someweb.html">
<input type="submit" class="btn btn-success" value="<spring:message text="View List"/>"> 
</form>

but it seems that this code

<i class="fa fa-list-ul fa-lg"></i>

wont fit inside, and i tried to insert it inside in different position, i always get failed result. all i wanted is to have this kind of look here.

hope you could help. thanks in advance.

1

There are 1 answers

6
minion On BEST ANSWER

I have not tried it completely, but this should give you an idea.

    <form action="/someweb.html">
<button type="submit" class="btn btn-success"><i class='fa fa-list-ul fa-lg'></i><spring:message text="View List"/></button>
    </form>

Here is a sample in codepen.

http://codepen.io/anon/pen/yNXvZw