Adrienne Boswell wrote:
> Gazing into my crystal ball I observed "rf" <> writing in
> news
9ljm.13082$:
>
>> Adrienne Boswell wrote:
>>> Here's the test
>>> page:http://silverlakereservoirs.org/testadduser.html
>>>
>>> In IE (IE6, 7,
the input for firstname is jumping all the way to
>>> the left, which pushes all the labels one field down and is
>>> confusing as heck for users. Eg:
>>
>> FF as well.
>
> I'm not seeing that in FF (except with the IE tab). Which version?
Er, 3.0.5. Same with seamonkey 1.1.7. FWIW with Safari the asterisks are in
the wrong place (to the very left of the form, on a "line" by themselves.).
Is that where they are supposed to be? But, on a seperate line?
Speaking of those asterisks, remove them (or put them inside the label
element) and everything is fixed. I suspect it is the combination of an *
followed by a float: left; label followed by an input field is confusing the
browsers. This also explains the behaviour in Safari.
Should not happen I agree but then...
>> I do labels the other way round. Instead of using the for attribute,
>> nest the input field within the label:
>> <label>whatever<input ...></label>
>
> I like to use it to line everything up. I don't seem to be able to do
> that with nesting.
Quite possible. Just put the label text inside some container with a width,
as you are doing right now.
> I'm doing this all server side anyway. They don't get lost.
Well, actually, they do. Hence your post
>The
> server loops through the fields and puts all the requisite properties
> in. (Of course you are only looking at the rendered HTML).
and it is the rendered HTML that is causing you the problem. The browser
doesn't care if somethng is done "server side" or if it is carefully hand
crafted by typing the stuff into a hexadecimal editor. It is the end result
that is displayed and, in this case, incorrectly. I'd still like to know why
though. Perhaps it's those breaks in there as well. What does <br> mean when
it's after something that is floated?