its me again! I am dynamically building fieldsets because the # of them could change according to the database. To accomodate for rel estate on the page. I want to change my current set-up of fieldSets to have a fixed width/height and have 2 coumns of checkboxes instead of one to see how it will layout on the page. Thanks:
BTW Im not good at styling thats why I asked the question 🙂
jsp:
<c:forEach items="${FieldMap}" var="detFieldEntry">
<fieldset class="det">
<legend>${FieldEntry.key}</legend>
<c:forEach items="${FieldEntry.value}" var="detBean">
<input type="checkbox" name="fieldNames" value="${Bean.fieldName}"
<c:if test="${form.fieldNameMap[Bean.fieldName]}">checked="checked" </c:if>>${Bean.displayName}</input>
</br>
</c:forEach>
</fieldset>
</c:forEach>
css:
table.det
{
}
table.det td
{ border: none; }
fieldset.det
{
display:block;
float:left;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
margin-top:20px;
margin-left:20px;
border:2px solid #CCCCCC;
}
fieldset.det legend
{
padding:2px 5px;
border:2px solid #CCCCCC;
font-weight: bold;
}
Are you looking for something like this? Check out my fiddle and let me know.
Maybe like this?