Sent by Doug Baker on 5 February 2002 09:09
Hello list,
My question is in the last paragraph, an exposition proceeds it:
Following the advice about laying out form elements in a table-like format
found in http://alistapart.com/stories/practicalcss/, I have created some forms
for my site usings <divs> and <spans>.
However, I tried to be clever and take one this article one step further: The
author suggests wrapping the form labels in <span class="label"></span> and
applying a style declaration to span.label. I thought, "I'll just make a
declaration for <label> (as found in the XHTML standard) and use that instead.
And lo, it floated and looked as I expected in IE 5.5. But when I tested in
NN6.1, it did not appear as I expected. In fact, by adding box property
declarations like float to <label> seems to transform it from an inline element
to a box element, with its width set to 100% (which cannot be changed) and you
can't add other box properties to it (like border).
Question for experts at reading the specs: If I were to verify that this is a
bug (or not), which part of the CSS spec should I consult?
Thanks,
Doug
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com