mark | r wrote:
> "Els" <> wrote in message
> news:...
>> mark | r wrote:
>>
>>> Using the code below and XHTML how do i get the P tags to contain the
>>> textarea if both the label and textarea are {float:left;width:100px} ?
>>> the problem im having is when i give the P tag a background colour i get
>>> silly strips of grey that should go all the way around the text area but
>>> dont!
>>>
>>> <form id="contact">
>>> <fieldset>
>>> <legend>Enquiry Details</legend>
>>> <p>
>>> <label for="details">Details</label>
>>> <textarea id="details" name="details"></textarea>
>>> </p>
>>> </fieldset>
>>> </form>
>>
>> You'll need an element with a clear property after the last floated
>> element (textarea) inside the containing element (p).
>> In IE it would be enough to set a height to the containing element, as
>> it then automatically stretches to encompass the content, even it it's
>> floated.
>
> im almost there, ive taken float:left off the input and text area which
> makes the textarea work , but the input box not, then ive added a
> after each input box which seems to be doing the trick - albeit with s
> everywhere
You just proved to have given incomplete code then. There is no input
element in the above code. You really should provide a URL to a live
and real situation, so people can actually see what you are
doing/trying to accomplish, and what's wrong or right.
Without seeing an example, I can only say "I don't think you need
at all in that form".
--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -