[thelist] CSS and border characteristics in IE 5.0 PC

MRC webmaster at equilon-mrc.com
Tue Mar 12 14:39:01 CST 2002


> border-bottom: 1px solid #ffffff;
> the last one is the one i prefer since it uses the hex value for the
> i think the order comes down to personal preference.

    The order that you suggest is correct, but it isn't a matter of personal
preference. The CSS 2 recommendation specifies the order [1] as:

border: [border-width || border-style || color] | inherit

    The double vertical bars indicate that any or all of the three
individual properties may be supplied, or the value "inherit" may be
supplied. But conforming user agents will likely ignore or misapply the
intended values if they are specified out of order.

James Aylard

1. http://www.w3.org/TR/REC-CSS2/box.html#border-shorthand-properties

More information about the thelist mailing list