DanAtHome
08-20-2004, 05:58 PM
Just wondering if doing it this way would be adequate. The only thing I can see wrong would be the use of double floats. (ie. row has float and inline style also has float)
CSS:
<style type="text/css">
/*Input Screens*/
div.inputForm{width: 100%;}
div.inputForm h2{width: 100%;}
div.inputForm .formFields{background: #fafafa; font-size: 100%;}
div.inputForm label{font-size: 70%; font-weight: bold; margin-left: 10px;}
div.inputForm p{font-size: 70%;}
div.row{float: left; margin-bottom: 10px;}
div.row span.hint{font-size: 80%; font-weight: normal;}
</style>
XHTML:
<div class="inputForm">
<div class="row">
<div style="float: left; width: 315px; text-align: center;">
<label for="home_score">
Home Score:
<input type="text" name="home_score" id="home_score" size="2" maxlength="2" title="Enter game day" class="formFields" />
</label>
</div>
<div style="float: left; width: 315px; text-align: center;">
<label for="away_score">
Away Score:
<input type="text" name="away_score" id="away_score" size="2" maxlength="2" title="Enter game day" class="formFields" />
</label>
</div>
</div>
</div>
CSS:
<style type="text/css">
/*Input Screens*/
div.inputForm{width: 100%;}
div.inputForm h2{width: 100%;}
div.inputForm .formFields{background: #fafafa; font-size: 100%;}
div.inputForm label{font-size: 70%; font-weight: bold; margin-left: 10px;}
div.inputForm p{font-size: 70%;}
div.row{float: left; margin-bottom: 10px;}
div.row span.hint{font-size: 80%; font-weight: normal;}
</style>
XHTML:
<div class="inputForm">
<div class="row">
<div style="float: left; width: 315px; text-align: center;">
<label for="home_score">
Home Score:
<input type="text" name="home_score" id="home_score" size="2" maxlength="2" title="Enter game day" class="formFields" />
</label>
</div>
<div style="float: left; width: 315px; text-align: center;">
<label for="away_score">
Away Score:
<input type="text" name="away_score" id="away_score" size="2" maxlength="2" title="Enter game day" class="formFields" />
</label>
</div>
</div>
</div>