1 reply [Last post]
travisbrown
Offline
newbie
Last seen: 19 years 29 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: 3 weeks 5 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

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