<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>csslearn.com &#187; CSS comments</title>
	<atom:link href="http://csslearn.com/tag/css-comments/feed" rel="self" type="application/rss+xml" />
	<link>http://csslearn.com</link>
	<description>learn style with style</description>
	<lastBuildDate>Mon, 01 Mar 2010 02:17:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS comments looks</title>
		<link>http://csslearn.com/css-comments-looks</link>
		<comments>http://csslearn.com/css-comments-looks#comments</comments>
		<pubDate>Tue, 24 Nov 2009 18:35:51 +0000</pubDate>
		<dc:creator>kunal</dc:creator>
				<category><![CDATA[CSS Basic]]></category>
		<category><![CDATA[CSS comments]]></category>

		<guid isPermaLink="false">http://csslearn.com/?p=34</guid>
		<description><![CDATA[CSS comments look like this: /* this is a comment */, and can be single-line or multipleline.  In the advanced CSS boilerplate, a multiline comment is used for an introduction and table of contents:
/*
STYLE SHEET FOR [WEB SITE]
Created by [AUTHOR NAME]
[URL OF AUTHOR]
ToC
1. defaults
2. structure
3. links and navigation
4. fonts
5. images
Notes
*/
Each section of the document is [...]


Related posts:<ol><li><a href='http://csslearn.com/css-syntax-syntax-details' rel='bookmark' title='Permanent Link: CSS Syntax &#038; Syntax Details'>CSS Syntax &#038; Syntax Details</a> <small>CSS syntax is easy. A stylesheet contains styles; a style...</small></li>
<li><a href='http://csslearn.com/the-rules-of-css' rel='bookmark' title='Permanent Link: The rules of CSS'>The rules of CSS</a> <small>Style sheets consist of a number of rules that define...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>CSS comments look like this: /* this is a comment */, and can be single-line or multipleline.  In the advanced CSS boilerplate, a multiline comment is used for an introduction and table of contents:<br />
/*<br />
STYLE SHEET FOR [WEB SITE]<br />
Created by [AUTHOR NAME]<br />
[URL OF AUTHOR]<br />
ToC<br />
1. defaults<br />
2. structure<br />
3. links and navigation<br />
4. fonts<br />
5. images<br />
Notes<br />
*/<br />
Each section of the document is then headed by a lengthy comment that makes it obvious  when a section has begun:<br />
/* &#8212;&#8212;&#8212; 1. defaults &#8212;&#8212;&#8212; */<br />
* {<br />
margin: 0;<br />
padding: 0;<br />
}<br />
body {<br />
}<br />
As you can see, property/value pairs and the closing curly bracket are indented by two tabs in the document (represented by two spaces on this page), which makes it easier to scan vertically through numerous selectors. (Note that for the bulk of this book, the rules aren’t formatted in this way, because indenting only the property/value pairs differentiates them more clearly in print; however, the download files all have CSS rules indented as per the recommendations within this section.) Comments can also be used for subheadings, which I tend to indent by one tab:<br />
/* float-clearing rules */<br />
.separator {<br />
clear: both;<br />
}<br />
Although the bulk of the style sheet’s rules are empty, just having a boilerplate to work from saves plenty of time in the long run, ensuring you don’t have to key in the same defaults time and time again. Use the one from the download files as the basis for your own, but if you regularly use other elements on a page (such as pull quotes), be sure to add those, too—after all, it’s quicker to amend a few existing rules to restyle them than it is to key them in from scratch.</p>
<p><em><strong>Along the same lines as boilerplates, you can save time by creating a snippets folder on your hard drive. Use it to store snippets of code—HTML elements, CSS rules, and so on—that you can reuse on various websites. Many applications have this functionality built in, so make use of it if your preferred application does.</strong></em></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcsslearn.com%2Fcss-comments-looks&amp;linkname=CSS%20comments%20looks"><img src="http://csslearn.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://csslearn.com/css-syntax-syntax-details' rel='bookmark' title='Permanent Link: CSS Syntax &#038; Syntax Details'>CSS Syntax &#038; Syntax Details</a> <small>CSS syntax is easy. A stylesheet contains styles; a style...</small></li>
<li><a href='http://csslearn.com/the-rules-of-css' rel='bookmark' title='Permanent Link: The rules of CSS'>The rules of CSS</a> <small>Style sheets consist of a number of rules that define...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://csslearn.com/css-comments-looks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
