> -----Original Message-----
> From: css-d-boun...@lists.css-discuss.org [mailto:css-d-boun...@lists.css-
> discuss.org] On Behalf Of Ian Piper
> Sent: Friday, February 27, 2009 7:30 AM
> To: css-d css-d
> Subject: [css-d] Is a missing ";" OK?
> 
> Hi all,
> 
> I am building on a style sheet for a Drupal website. I have noticed
> that in the styles.css file for the theme many of the styles have no
> ";" at the end of the line. This seems mostly to be where there is
> more than one line between the braces, like so:
> 
> 
> #primarylinks a:hover {
> background:#7d9eac;
> text-decoration:none
> }
> 
> I had always thought that the terminating ";" was mandatory. Can
> someone advise me?

It is not mandatory, but if the last declaration is skipped for some reason
then Safari 2 could not recover and drop most of the stylesheet (depending
where the rule is).

For example:

#primarylinks a:hover {
 background:#7d9eac;
 text-decoration:none;
 _text-decoration:underline
}


-- 
Regards,
Thierry | http://www.TJKDesign.com


  


______________________________________________________________________
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