<?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>CSS Tutorials and CSS Articles &#187; Selectors</title>
	<atom:link href="http://www.cssmaster.co.uk/tag/selectors/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cssmaster.co.uk</link>
	<description>CSS tutorials and articles</description>
	<lastBuildDate>Tue, 02 Feb 2010 01:43:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Selectors and Declarations</title>
		<link>http://www.cssmaster.co.uk/selectors-and-declarations</link>
		<comments>http://www.cssmaster.co.uk/selectors-and-declarations#comments</comments>
		<pubDate>Thu, 14 Jan 2010 20:13:51 +0000</pubDate>
		<dc:creator>CSS Master</dc:creator>
				<category><![CDATA[CSS Tutorials]]></category>
		<category><![CDATA[Declarations]]></category>
		<category><![CDATA[Selectors]]></category>

		<guid isPermaLink="false">http://www.cssmaster.co.uk/?p=8</guid>
		<description><![CDATA[When using CSS either in your stylesheet or defined inside &#60;style&#62;&#60;/style&#62; tags there are 2 basic things you need to learn.
Selectors
Let&#8217;s examine a very basic and very short CSS file.

h1 {
  color:#ffff00;
  border-bottom:1px solid #ccc;
}

This code gives all h1 tags a 1 pixel bottom grey border, and makes the text yellow.  The [...]]]></description>
			<content:encoded><![CDATA[<p>When using <strong>CSS</strong> either in your stylesheet or defined inside <code>&lt;style&gt;&lt;/style&gt;</code> tags there are 2 basic things you need to learn.</p>
<h2>Selectors</h2>
<p>Let&#8217;s examine a very basic and very short CSS file.<br />
<code><br />
h1 {<br />
  color:#ffff00;<br />
  border-bottom:1px solid #ccc;<br />
}<br />
</code><br />
This code gives all h1 tags a 1 pixel bottom grey border, and makes the text yellow.  The <em>h1</em> is the <em>selector</em>.  This is what we&#8217;re telling the browser to change the styles for.</p>
<h2>Declatations</h2>
<p>Once we have selected something (using the selector) then we must tell it what to change.  All elements have a default style which is more or less identical across all browsers.  Again, using the dame example as before the <code>color:#ffff00;</code> is a declaration, as too is <code>border-bottom:1px solid #ccc</code>.</p>
<p>So to summarise, selectors tell the browser what to edit, and the declarations tell the browser what to edit to.  Everything inside the curly braces ({ }) can generally be considered a series of declarations, with a couple of very rare and minors exceptions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssmaster.co.uk/selectors-and-declarations/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

