Works in FF of course, but in IE the labels line up nicely while the input boxes are all on the first line. Don't know how to include the image or what resolution to put it at (800x600 is what I just grabbed).
Here is the css:
Code:
.leftLabel {
float: left;
clear: left;
width: 39em;
line-height: 1.8em;
margin-right: 5px;
text-align: right;
}
.rightData {
float: left;
clear: right;
width: 6em;
line-height: 1.8em;
text-align: left;
}
and here is the html:
Code:
<fieldset title="<bean:message key="fs.calc.input.household.heading"/>">
<legend><bean:message key="fs.calc.input.household.heading"/></legend>
<div class="leftLabel">
<bean:message key="fs.calc.input.numInHH"/></div>
<div class="rightData">
<html:text styleId="numInHH" property="numInHH" size="2" maxlength="2"/></div>
<div class="leftLabel">
<bean:message key="fs.calc.input.childrenUnder2"/></div>
<div class="rightData">
<html:text styleId="numberOfChildrenUnder2" property="numberOfChildrenUnder2" size="2" maxlength="2"/></div>
<div class="leftLabel">
<bean:message key="fs.calc.input.childrenOver2"/></div>
<div class="rightData">
<html:text styleId="numberOfChildrenOver2" property="numberOfChildrenOver2" size="2" maxlength="2"/></div>
<div class="leftLabel">
<bean:message key="fs.calc.input.qualifyingMember"/></div>
<div class="rightData">
<html:select styleId="qualifyingMember" property="qualifyingMember">
<html:option value="false"><bean:message key="fs.calc.input.yesno.no"/></html:option>
<html:option value="true"><bean:message key="fs.calc.input.yesno.yes"/></html:option>
</html:select></div>
<div class="leftLabel">
<bean:message key="fs.calc.input.simplifiedProcessingUnit"/></div>
<div class="rightData">
<html:select styleId="simplifiedProcessingUnitInd" property="simplifiedProcessingUnitInd">
<html:option value="false"><bean:message key="fs.calc.input.yesno.no"/></html:option>
<html:option value="true"><bean:message key="fs.calc.input.yesno.yes"/></html:option>
</html:select></div>
</fieldset>
It will look something like this:
label 1 [input1] [input2] [input3]...
label 2
label 3
.
.
.
TIA,
Jerry