2009/2/10 Ib Jensen <ibkjen...@gmail.com>:
> #sidebar {position: relative;}
> #sidebar {position: relative}
>
> Are both of these writings correct, or are there any differencies in
> which version of ccs you are using in connection to (x)HTML.

In all versions of CSS, the semi-colon separates property / value
pairs. The last pair in a rule-set doesn't need to have one, but it
does no harm to include it.

I would recommend, as a matter of coding style, to always include it.
It reduces the risk that you'll add a new property / value pair to the
end and forget to add the semi-colon before it.

-- 
David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to