On 01.09.2005 15:01, Scott Hamm wrote:
When I tried to set width on label, it works in IE, but not in FireFox.

HTML:
<div id="selects">
<label for="S_operator">Operator:</label>
<select id="S_Operator" name="operator">
<option>&nbsp;</option>
...
</div>

CSS:
div#selects label {
        border:1px solid #000;
        width:200px;
}


As David Dorward wrote already:

You can't style a inline element, unless you float it.
I uploaded a simple example file that demonstrates it.
In this example I used the border-top to keep the text
centered vertically if one changes the font-size.


< http://www.kriton.de/TEST/_Formular.html >




Regards,
Uwe Kaiser


--

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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/

Reply via email to