Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Wrapping

Status
Not open for further replies.

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=&quot;status&quot; type=&quot;checkbox&quot; value=&quot;aa&quot;></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;}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top