1 reply [Last post]
travisbrown
Offline
newbie
Last seen: 15 years 44 weeks ago
Joined: 2003-11-13
Posts: 1
Points: 0

Okay. Need to nowrap the outer div so the checkbox and label are inline, allow the label to wrap in its inner position. 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;}

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 14 hours 29 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

CSS Wrapping

Hi travisbrown,
You could float the .field left as well that should alow the text to wrap.
You may want to use div's instead of spans for the containers, although spans will act like block elements when floated.

Hope that helps