User-contributed notes
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.
SitePoint CSS Reference » Learn CSS3 shortcuts, get help with CSS Selectors, Rounded corners, edges. CSS background image - tutorials on CSS and much more
The contents of this webpage are copyright © 1998-2013 SitePoint Pty. Ltd. All Rights Reserved.
Web Design & Development by SitePoint, Melbourne, Australia – 99designs.com
CSS Comments
In CSS, a comment starts with /* and ends with */. Comments can span multiple lines, but may not be nested:
According to the CSS2 specification, comments that appear between tokens won’t have any effect on the styles’ rendering. In practice, however, we find comments causing errors in some older browsers in certain situations.
The // comment syntax used in C++ is not allowed. Neither are SGML comments that take the form <!-- … -->, except in one situation: they may appear in internal style sheets—style sheets placed within the HTML source using the
<style>tag—in order to hide the CSS statements from pre-HTML4 user agents. However, this use of comments is now redundant and can be disregarded. See Linking CSS to a Web Document for further information.