Previous Message
Next Message

someone please explain what is happening, i don't get it

Sent by Dax on 23 October 2004 03:03


hello,

out of desperation i am coming to the list because i cannot seem to understand how to fix
a very common problem. when you float something contained within another element, the
outside element does not wrap around the floated element.


Try creating a clearing div in your style sheet

..cb {
clear:both;
line-height:0;
height:0;
font-size:0.1em;
}

and then adding it to the end of each of your second spans in each row like so:

<.div class="row">
  <.span class="label"><label for="name">Name</label></span>
  <.span class="formw"><input id="name" type="text" name="name" size="30" />
  </span><div class="cb"></div>
</div>


Dax


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: