[thelist] bizarre yellow form color

James Aylard evolt at pixelwright.com
Thu Feb 26 16:51:11 CST 2004

Alvaro Medina wrote:

>> http://www.inaridesign.com/projects/form/test.htm
> Take out the ";" in your "style" lines. Maybe this cause the browsers
> to think that the style continues, so it reads the "yellow" comment;
> it will read it as the last attribute, in this case "yellow", and
> will therefore ignore the "red" attribute.

    For clarification, the use of semicolons following the last (or only)
declaration in a style block, though not necessary, is fully acceptable and
will not cause a problem. In fact, I consider the use of a semicolon after
the last declaration as being a good practice, as it avoids problems if
additional declarations are later added to a style block.

James Aylard

More information about the thelist mailing list