I have a UL in which I have 6 LI. I want to set a different width of each LI. I am using server side coding using JSP. I have a variable set which contains an array of 6 numbers. I want to assign those number as width % to the LI elements. The only way I can see doing is :
<li style="width:<c:out value="${number}"/>%;">hello</li>
This seems a bit lame. Is there a way in which I can dynamically set the width of an LI element using JSTL (and no client side tech like javascript / jquery).
Thank you in advance.