0

i follwed this link Line Break in HTML Select Option? but it didnt helped me as i tried every suggestion that was suitable for my requirement, the question seems simple but can anyone tell me or share me if they have implemented then how?

I'm sharing part of code:

<td id="td_User">
<select name="userName" id="userName" required="required"  style="width: 100px">
<option value=" " selected>All</option>
<c:forEach var="map" items="${userList}">
<c:if test="${map.key ne '0'}">
<option value="${map.key }"<c:if test="${map.value eq usrName}">Selected</c:if>>${map.value }</option>
</c:if>
</c:forEach>
</select>
</td>

Here, the Option Value is Coming From Database, The issue that is that i hv to keep Select tag width 100Px,

  <select name="userName" id="userName" required="required"  style="width: 100px">

But When Drop down comes, Dropdown box width depends upon the data, i.e; Option value. I need to fix this Dropdown Box width:100px Containing Data,but if data is Containing more words then it should be shown in multiple Line.

0 Answers0