Previous Message
Next Message

styling the label

Sent by David Dorward on 4 September 2005 11:11


On 01/09/05, Scott Hamm [EMAIL-REMOVED]> wrote:
> When I tried to set width on label, it works in IE, but not in FireFox.

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

The width property does not apply to elements that are displaying
inline. If you have IE6 in quirks mode it gets this wrong.

Fiddle with float or display to turn the label into a block and the
width property will apply.

-- 
David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>
______________________________________________________________________
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: