Previous Message
Next Message

styling the label

Sent by David Dorward on 4 September 2005 12:12

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 <><>
css-discuss [EMAIL-REMOVED]]
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: