travisbrown
Technical User
- Dec 31, 2001
- 1,016
Okay. Need to nowrap the outer div so the label stays inline with the checkbox, but allow the inner label to wrap. How?
<div class=febox><span class=cb><input name="status" type="checkbox" value="aa"></span><span class=field>label</span></div>
CSS:
.febox {width: 100%;white-space: nowrap;}
.cb {float: left;width: 15px;}
.field {width: 120px;white-space: normal;}
<div class=febox><span class=cb><input name="status" type="checkbox" value="aa"></span><span class=field>label</span></div>
CSS:
.febox {width: 100%;white-space: nowrap;}
.cb {float: left;width: 15px;}
.field {width: 120px;white-space: normal;}