Jayhawk
05-25-2005, 12:26 AM
When I put a border around the <div> to see what is happening, I see that there is space within the div below the text, as if a blank line were being printed. Can anyone tell me why?
.cbox {
margin: 5px auto;
font-family: Arial, Helvetica, sans-serif;
font-size: 12pt;
font-weight: bold;
color: #0000B0;
position: relative;
text-align: left;
}
.cright {
float: right;
text-align: right;
}
<div class="cbox" style="width: 475px;">
<div class="cright" style="width: 190px; padding-top: 5px;">
<SELECT NAME=Agent onchange="this.form.submit();">
//etc
</select>
<span class="black-8">not finalized</span>
<span class="blue-8">finalized</span>
<span class="green-8">locked</span>
</div>
</div>
The <span> tags are straightforward font size and color classes. There are no <br> tags anywhere in the code.
.cbox {
margin: 5px auto;
font-family: Arial, Helvetica, sans-serif;
font-size: 12pt;
font-weight: bold;
color: #0000B0;
position: relative;
text-align: left;
}
.cright {
float: right;
text-align: right;
}
<div class="cbox" style="width: 475px;">
<div class="cright" style="width: 190px; padding-top: 5px;">
<SELECT NAME=Agent onchange="this.form.submit();">
//etc
</select>
<span class="black-8">not finalized</span>
<span class="blue-8">finalized</span>
<span class="green-8">locked</span>
</div>
</div>
The <span> tags are straightforward font size and color classes. There are no <br> tags anywhere in the code.