<?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>quirm.net &#187; css</title>
	<atom:link href="http://quirm.net/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://quirm.net</link>
	<description>wordpress &#38; web design</description>
	<lastBuildDate>Wed, 01 Feb 2012 17:39:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Category Specific Feed Lists in WordPress</title>
		<link>http://quirm.net/2008/10/16/creating-a-list-of-category-specific-news-feeds-in-wordpress/</link>
		<comments>http://quirm.net/2008/10/16/creating-a-list-of-category-specific-news-feeds-in-wordpress/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 12:20:40 +0000</pubDate>
		<dc:creator>Mel</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=347</guid>
		<description><![CDATA[On larger WordPress blogs, it make sense to offer category specific news feeds so that users can subscribe to just the topics that they are interested in. There are already a couple of solutions out there that can help achieve this using either plugins or making use of wp_list_categories. However, I wasn&#8217;t happy with either&#8230;]]></description>
			<content:encoded><![CDATA[<p>On larger WordPress blogs, it make sense to offer category specific news feeds so that users can subscribe to just the topics that they are interested in. There are already a couple of solutions out there that can help achieve this using either plugins or making use of <code>wp_list_categories</code>. However, I wasn&#8217;t happy with either option. Installing a plugin to create a single page seems like overkill to me whilst the <code>wp_list_categories</code> approach has its own problems.</p>
<p><span id="more-347"></span></p>
<h3>The Problems</h3>
<ol>
<li><code>wp_list_categories</code> will always output a link to the categories themselves. On a page that was supposed to just list news feeds, I felt that could create confusion.</li>
<li>It&#8217;s difficult to style the <abbr title="Really Simple Syndication">RSS</abbr> links to use icons via <abbr title="Cascading Style Sheet">CSS</abbr> &#8212; which is useful if you want to create rollover effects.</li>
<li><code>wp_list_categories</code> used with the <code>feed</code> and/or <code>feed_image</code> parameters outputs the two links with only whites pace separating them. That can cause problems for some user agents.</li>
<li>Even if you make use of both <code>feed</code> and <code>feed_image</code> to provide a text alternative if images are disabled or not accessible, you can only specify a single string for the <code>feed</code> attribute which means that all of the RSS links have identical text. Not good for accessibility or Search Engine Optimisation (SEO).</li>
</ol>
<h3>The Code</h3>
<p>I needed a way to simply grab all of the data relating to top level categories and then use it to fashion the links in the manner that I wanted. This is what I came up with:</p>
<pre><code>&lt;ul class="rss-feeds"&gt;
&lt;?php
$myitem ='';
$mycats=  get_categories();
foreach($mycats as $mycat) {
	$myitem = '&lt;li&gt;&lt;a title="Subscribe to the '.$mycat->name.' news feed" href="'.get_bloginfo('url').'/category/'.$mycat->category_nicename.'/feed/">'.$mycat->name.'&lt;/a&gt;&lt;/li&gt;';
	echo $myitem;
}
?>
&lt;/ul&gt;</code></pre>
<p>I then dropped the code into a specific page template (and, no, it shouldn&#8217;t be inside The Loop), created a new page called &#8220;News Feeds&#8221; using this template which resulted in the following:</p>
<p><a href="http://quirm.net/wp-content/uploads/2008/10/rss-list1.png"><img src="http://quirm.net/wp-content/uploads/2008/10/rss-list1-400x195.png" alt="Screenshot 1: Unstyled list" width="400" height="195" class="aligncenter size-medium wp-image-352" /></a></p>
<h3>Styling The List</h3>
<p>Now to add some icons via CSS.</p>
<p>I created two 16px x 16px rss icons in different colours to represent the &#8216;on&#8217; and &#8216;off&#8217; states and dropped them into the images directory of the theme. I then added the following CSS:</p>
<pre><code>
.rss-feeds {
	margin:20px 0 0;
	padding:0;
}
.rss-feeds li {
	list-style:none;
	list-style-image:none;
}
.rss-feeds li a {
	padding-left:25px;
	background:url(images/tiny-rss.png) no-repeat top left;
}
.rss-feeds li a:hover,.rss-feeds li a:active,.rss-feeds li a:focus {
	background:url(images/tiny-rss-on.png) no-repeat top left;
}
</code></pre>
<h3>The End Result</h3>
<p>A nicely formatted list of RSS feed links with CSS rollover effects that work with images off or on.</p>
<p><a href="http://quirm.net/wp-content/uploads/2008/10/rss-list2.png"><img src="http://quirm.net/wp-content/uploads/2008/10/rss-list2-400x195.png" alt="Screenshot 2: Styled list" width="400" height="195" class="aligncenter size-medium wp-image-358" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2008/10/16/creating-a-list-of-category-specific-news-feeds-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Selectors</title>
		<link>http://quirm.net/2008/10/02/css-selectors/</link>
		<comments>http://quirm.net/2008/10/02/css-selectors/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 13:13:42 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=211</guid>
		<description><![CDATA[In CSS, pattern matching rules determine which style rules apply to elements in the document tree. These patterns are called selectors and may range from simple element names to complex patterns. If all conditions in the pattern are true for a certain element, the selector matches the element and the appropriate style will be applied&#8230;]]></description>
			<content:encoded><![CDATA[<p>In <acronym title="Cascading style Sheet">CSS</acronym>, pattern matching rules determine which style rules apply to elements in the document tree. These patterns are called <strong>selectors</strong> and may range from simple element names to complex patterns. If all conditions in the pattern are true for a certain element, the selector matches the element and the appropriate style will be applied when the element is rendered in a CSS-capable browser.</p>
<p><span id="more-211"></span></p>
<table id="css-selectors" summary="CSS selectors classified by pattern,meaning and type: 15 rows and 3 columns">
<caption>Summary of CSS2 Selector Syntax</caption>
<thead>
<tr>
<th id ="pattern">Pattern</th>
<th id="meaning">Meaning</th>
<th id="selector-type">Selector Type</th>
</tr>
</thead>
<tbody>
<tr>
<td headers="pattern">*</td>
<td headers="meaning">Matches any element.</td>
<td headers="selector-type">Universal selector</td>
</tr>
<tr class="alt">
<td headers="pattern">E</td>
<td headers="meaning">Matches any E element (eg <code>h2</code>,<code>span</code>)</td>
<td headers="selector-type">Type selector</td>
</tr>
<tr>
<td headers="pattern">E F</td>
<td headers="meaning">Matches any F element that is a descendant of an E element</td>
<td headers="selector-type">Descendant selector</td>
</tr>
<tr class="alt">
<td headers="pattern">E &gt; F</td>
<td headers="meaning">Matches any F element that is a child of an element E</td>
<td headers="selector-type">Child selector</td>
</tr>
<tr>
<td headers="pattern">E + F</td>
<td headers="meaning">Matches any F element immediately preceded by an element E</td>
<td headers="selector-type">Adjacent selector</td>
</tr>
<tr class="alt">
<td headers="pattern">E[foo]</td>
<td headers="meaning">Matches any E element with the &#8220;foo&#8221; attribute set (whatever the value)</td>
<td headers="selector-type">Attribute selector</td>
</tr>
<tr>
<td headers="pattern">E[foo="warning"]</td>
<td headers="meaning">Matches any E element whose &#8220;foo&#8221; attribute value is exactly equal to &#8220;warning&#8221;</td>
<td headers="selector-type">Attribute selector</td>
</tr>
<tr class="alt">
<td headers="pattern">E[foo~="warning"]</td>
<td headers="meaning">Matches any E element whose &#8220;foo&#8221; attribute value is a list of space-separated  values, one of<br />
which is exactly equal to &#8220;warning&#8221;</td>
<td headers="selector-type">Attribute selector</td>
</tr>
<tr>
<td headers="pattern">E[lang|="en"]</td>
<td headers="meaning">Matches any E element whose &#8220;lang&#8221; attribute has a hyphen-separated list of values beginning (from the left) with &#8220;en&#8221;.</td>
<td headers="selector-type">Attribute selector</td>
</tr>
<tr class="alt">
<td headers="pattern">DIV.warning</td>
<td headers="meaning">The same as DIV[class~="warning"]</td>
<td headers="selector-type">Class selector</td>
</tr>
<tr>
<td>E#myid</td>
<td headers="meaning">Matches any E element ID equal to &#8220;myid&#8221;.</td>
<td headers="selector-type">ID selector</td>
</tr>
<tr class="alt">
<td headers="pattern">E:first-child <sup><a href="#footnote1">[1]</a></sup></td>
<td headers="meaning">Matches element E when E is the first child of its parent</td>
<td headers="selector-type">Pseudo-class</td>
</tr>
<tr>
<td headers="pattern">:first-line <sup><a href="#footnote1">[1]</a></sup></td>
<td headers="meaning">Applies style to the first formatted line of a paragraph</td>
<td headers="selector-type">Pseudo-class</td>
</tr>
<tr class="alt">
<td headers="pattern">:first-letter <sup><a href="#footnote1">[1]</a></sup></td>
<td headers="meaning">May be used for &#8220;initial caps&#8221; and &#8220;drop caps&#8221;, which are common typographical effects</td>
<td headers="selector-type">Pseudo-class</td>
</tr>
<tr>
<td headers="pattern">E:active<br />E:hover<br />E:focus</td>
<td headers="meaning">Matches E during certain user actions</td>
<td headers="selector-type">Dynamic pseudo-class</td>
</tr>
<tr class="alt">
<td headers="pattern">:before <sup><a href="#footnote2">[2]</a></sup><br />:after <sup><a href="#footnote2">[2]</a></sup></td>
<td headers="meaning">Can be used to insert generated content before or after an element&#8217;s content</td>
<td headers="selector-type">Dynamic pseudo-class</td>
</tr>
<tr>
<td headers="pattern">E:link<br />E:visited </td>
<td headers="meaning">Matches element E if E is the source<br />
anchor of a hyperlink of which the target is not yet visited (:link) or already visited (:visited)</td>
<td headers="selector-type">Link pseudo-class</td>
</tr>
<tr class="alt">
<td headers="pattern">E:lang(c)</td>
<td headers="meaning">Matches element of type E if it is in (human) language &#8216;c&#8217; (the document language specifies how language is determined)</td>
<td headers="selector-type">:lang() pseudo-class</td>
</tr>
</tbody>
</table>
<ol>
<li id="footnote1">Not currently supported by most browsers.</li>
<li id="footnote2">Not supported by Internet Explorer 6.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2008/10/02/css-selectors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Usage</title>
		<link>http://quirm.net/2008/10/02/css-usage/</link>
		<comments>http://quirm.net/2008/10/02/css-usage/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 13:11:38 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=209</guid>
		<description><![CDATA[Overview There are three ways of inserting style information: In the header of a given HTML page (Internal Style) Within a given tag (Inline Style) In an separate file which is then linked to the HTML page by a reference in the page header (External Style) External Style Sheets External style sheets are the best&#8230;]]></description>
			<content:encoded><![CDATA[<h3 id="one">Overview</h3>
<p>There are three ways of inserting style information:</p>
<ul>
<li>In the header of a given <acronym title="HyperText Markup Language">HTML</acronym> page (<strong>Internal Style</strong>)</li>
<li>Within a given tag <strong>(Inline Style</strong>)</li>
<li>In an separate file which is then linked to the HTML page by a reference in the page header (<strong>External Style</strong>)</li>
</ul>
<p><span id="more-209"></span></p>
<h3 id="two">External Style Sheets</h3>
<p>External style sheets are the best method when you want the style to be applied to many pages. With an external style sheet, you can change the look of an entire web site by changing one external style sheet file. Each HTML document that you want to apply these styles to must contain a link to the style sheet using the &lt;link&gt; tag inside the &lt;head&gt;&lt;/head&gt; section:</p>
<pre><code>&lt;head&gt;
...
&lt;link rel="stylesheet" type="text/css" href="mystyle.css" /&gt;
&lt;/head&gt;</code></pre>
<p>The browser will read the style definitions from the file mystyle.css, and format the HTML document accordingly.</p>
<p>An external style sheet can be written in any text editor and saved with a .css extension.</p>
<h3 id="three">Internal Style Sheet</h3>
<p>An internal style sheet should be used when a single document has a unique style. You define internal styles in the &lt;head&gt;&lt;/head&gt; section by using the &lt;style&gt; tag, like this:</p>
<pre><code>&lt;head&gt;
...
&lt;style type="text/css"&gt;
body {background-image: url(images/back40.gif);}
hr {background: #ffffff;    color: 0000ff;}
p {margin-left: 20px;}
&lt;/style&gt;
&lt;/head&gt;</code></pre>
<p>The browser will now read the style definitions, and format the document according to it. If the document also contains a link to an external style sheet, the internal style  declarations will over-ride any similar declarations within the external sheet.</p>
<p>This can be helful when you wish to re-adjust the style of a single page &#8211; for example, alter the padding on the body tag.</p>
<h3 id="four">Inline Style</h3>
<p>An inline style loses many of the advantages of style sheets by mixing content with presentation.</p>
<p>Therefore, you should use this method sparingly, such as when a style is to be applied to a single occurrence of an element.</p>
<p>To use inline styles, you use the style attribute in the relevant tag. The style attribute can contain any CSS property. The example below shows how to change the font-style and the left margin of a paragraph:</p>
<pre><code>&lt;p style="font-style: italic; margin-left: 20px;"&gt;
This is a paragraph
&lt;/p&gt;</code></pre>
<p>Inline style will overide both internal and external style declarations.</p>
<h3 id="five">Multiple Style Sheets</h3>
<p>If some properties have been set for the same selector in different style sheets, the final value will be inherited according to the rules of Cascading Style</p>
<p>For example, an external style sheet has these properties for the h2 selector:</p>
<pre><code>h2 {text-align: left; font-style: italic; font-size: 200%;}</code></pre>
<p>And an internal style sheet has these properties for the h2 selector:</p>
<pre><code>h2 {text-align: right; font-size: 100%;}</code></pre>
<p>And an inline style declaration reads:</p>
<pre><code>&lt;h2 style="font-size: 80%;"&gt;...&lt;/h2&gt;</code></pre>
<p>The final values will be:</p>
<ul>
<li><strong>text-align: right</strong> (from the internal style sheet over-riding the external sheet)</li>
<li><strong>font-style: italic</strong> (from the external sheet)</li>
<li><strong>font-size: 80%</strong> (from the inline style over-riding both the external and internal declarations for font-size)</li>
</ul>
<h3 id="six">Further Reading</h3>
<p><a href="http://www.w3c.org/TR/REC-CSS1/">Cascading Style Sheets Level 1 W3C Recommendations</a></p>
<p><a href="http://www.w3c.org/TR/REC-CSS2/">Cascading Style Sheets Level 2 CSS2 Specification W3C Recommendation</a></p>
<h3 id="seven">Useful Resources</h3>
<p><a href="http://jigsaw.w3.org/css-validator/">W3C Online CSS Validator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2008/10/02/css-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Syntax</title>
		<link>http://quirm.net/2008/10/02/css-syntax/</link>
		<comments>http://quirm.net/2008/10/02/css-syntax/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 13:00:43 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=204</guid>
		<description><![CDATA[Selectors, properties &#38; values CSS syntax is made up of three parts: selector (often the HTML element you wish to style) property (the attribute you wish to change eg. background colour) value (eg. the colour you want your background to be) The way in which these are used is: selector {property: value;} You don&#8217;t have&#8230;]]></description>
			<content:encoded><![CDATA[<h3 id="synone">Selectors, properties &amp; values</h3>
<p><acronym title="Cascading Style Sheet">CSS</acronym> syntax is made up of three parts:</p>
<ul>
<li><strong>selector </strong>(often the <acronym title="HyperText Markup Language">HTML</acronym> element you wish to style)</li>
<li><strong>property</strong> (the attribute you wish to change eg. background colour)</li>
<li><strong>value</strong> (eg. the colour you want your background to be)</li>
</ul>
<p><span id="more-204"></span></p>
<p>The way in which these are used is:</p>
<pre><code>selector {property: value;}</code></pre>
<p>You don&#8217;t have to have each property/value pair on a separate line but it does increase readability &#8211; especially in long, complex style sheets.</p>
<p>For example, to set a black background, you would use:</p>
<pre><code>body {background: #000000;}</code></pre>
<p>where #000000 is the hexadecimal code for black.</p>
<p>If the value you want to use contains white space multiple words, put quotes around the value:</p>
<pre><code>p {font-family: 'sans serif';}</code></pre>
<p>You can specify more than one property in a given declaration. The example below shows how to define a center aligned paragraph of italicised text.</p>
<pre><code>p {text-align:center; font-style: italic;}</code></pre>
<p>You can group selectors by separate them with commas.</p>
<p>In the example below, all the header elements have been defined as white:</p>
<pre><code>h1,h2,h2,h4,h5,h6 {color: #ffffff;}</code></pre>
<p>However, whenever you do define a text colour, it is advisable to also define a background colour and vice versa. This can ensure that your text remain readable.</p>
<pre><code>h1,h2,h2,h4,h5,h6 {color: #ffffff; background: #000000;}</code></pre>
<p>Now your white header text will always be on a black background &#8211; even if the rest of your page<br />
has a white background.</p>
<h3 id="two">The class selector</h3>
<p>With the class selector you can define different styles for the same type of HTML element.</p>
<p>For example, you want two types of paragraphs in your document: one italicised  and one bold. </p>
<pre><code>p.italic {font-style: italic;}
p.bold{font-weight: bold;}</code></pre>
<p>Now, when you want to use either of the above styles in a web page, you can do the following</p>
<pre><code>&lt;p class="italic"&gt;This paragraph will be in italics.&lt;/p&gt;
&lt;p class="bold"&gt;This paragraph will be bold.&lt;/p&gt;</code></pre>
<p>However, you can only use one &#8216;class&#8217; declaration per HTML element at any one time! The example below is the wrong way of trying to get bold, italicised, text:</p>
<pre><code>&lt;p class="italic" class="bold"&gt;This text is bold and italic.&lt;/p&gt;</code></pre>
<p>The correct method would be to define a third class selector.</p>
<pre><code>p.bold-italic {font-style: italic; font-weight: bold;}</code></pre>
<p>And then use:</p>
<pre><code>&lt;p class="bold-italic"&gt;This text is bold and italic.&lt;/p&gt;</code></pre>
<p>Or you could use:</p>
<pre><code>&lt;p class="italic bold"&gt;This text is bold and italic.&lt;/p&gt;</code></pre>
<h3 id="three">Making selector classes available to multiple HTML elements</h3>
<p>If you omit the tag name in a selector, you open it up to be used by any HTML element.</p>
<p>For example, the following class:</p>
<pre><code>.center {text-align: center;}</code></pre>
<p>can be used with any tag as appropriate.</p>
<pre><code>&lt;p class="center"&gt;...&lt;/p&gt;
&lt;span class="center"&gt;...&lt;/span&gt;
&lt;td class="center"&gt;...&lt;/td&gt;
&lt;div class="center"&gt;...&lt;/div&gt;</code></pre>
<p>can all be used in the same document.</p>
<p>Use class selectors where you think you will need to re-apply the same style more than once in a<br />
given document.</p>
<p>If you think that you will need to use the style with different HTML elements, don&#8217;t include any<br />
tag names in the class selector declaration.</p>
<h3 id="four">The id selector</h3>
<p>The id selector is different from the class selector.</p>
<p>While a class selector may be applied to many elements in a given document, an id selector can only be applied to only <strong>one</strong> element within a given document ie. it must be unique within the document.</p>
<p>The style rule below will match a p element that has the id value &#8216;para1&#8242;:</p>
<pre><code>p#para1 {text-align: center; color: #ff0000; background: #000000;}</code></pre>
<p>The style rule below will match the first element that has the id value &#8216;green&#8217;:</p>
<pre><code>#green {color: 00ff00;background: #000000;}</code></pre>
<p>So you could have:</p>
<pre><code>&lt;h1 id="green"&gt;...&lt;/h1&gt;
&lt;h2&gt;...&lt;/h2&gt;
&lt;p id="para1"&gt;...&lt;/p&gt;</code></pre>
<p>in the same document.</p>
<p>But having:</p>
<pre><code>&lt;h1 id="green"&gt;...&lt;/h1&gt;
&lt;h2 id="green"&gt;...&lt;/h2&gt;
&lt;p id="para1"&gt;...&lt;/p&gt;</code></pre>
<p>would be illegal as you would have attempted to repeat the id selector &#8216;#green&#8217;.</p>
<p>Use id selectors for styles that you are sure you&#8217;ll only need once in a given document.</p>
<h3 id="five">CSS Comments</h3>
<p>You can insert comments in CSS to explain your code, which can help you when you edit the source code at a later date.</p>
<p>Comments are ignored by the browser and begin with &#8220;/*&#8221;, and ends with &#8220;*/&#8221;.</p>
<pre><code>/* This is a comment */
p {text-align: center;}
/* This is another comment */
h1 {background: #ffffff; color: #000000;}</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2008/10/02/css-syntax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Basics</title>
		<link>http://quirm.net/2008/10/02/css-basics/</link>
		<comments>http://quirm.net/2008/10/02/css-basics/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 12:57:03 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=201</guid>
		<description><![CDATA[What is CSS? CSS stands for Cascading Style Sheets. A style defines how an HTML element is displayed. Style information can be stored: In the header of a given HTML page (Internal Style) Within a given tag (Inline style) In a separate file which is then linked to the HTML page by a reference in&#8230;]]></description>
			<content:encoded><![CDATA[<h3 id="basone">What is CSS?</h3>
<p>CSS stands for <strong>Cascading Style Sheets</strong>.</p>
<p>A <strong>style</strong> defines how an <acronym title="HyperText Markup Language">HTML</acronym> element is displayed.</p>
<p>Style information can be stored:</p>
<ul>
<li>In the header of a given HTML page (<strong>Internal Style</strong>)</li>
<li>Within a given tag (<strong>Inline style</strong>)</li>
<li>In a separate file which is then linked to the HTML page by a reference in the page header (<strong>External style</strong>)</li>
</ul>
<p><span id="more-201"></span></p>
<h3 id="two">Why use CSS?</h3>
<p>A web page consists of two basic components &#8211; the <strong>Content</strong> (or information you wish to display) and the <strong>Style</strong> (the way if which you wish the content to be displayed).</p>
<p><acronym title="Cascading Style Sheets">CSS</acronym> allows you to separate <strong>Content</strong> from <strong>Style</strong>. It&#8217;s even possible to have more than one style sheet &#8211; thus allowing you to have more than one way of displaying a page.</p>
<p>If all of the style information is retained within one external style sheet, it is possible to edit that one file and make sweeping changes (such as changing background and/or text colours) that affect hundreds of related web pages without having to touch a single HTML file</p>
<p>You can define a style for any HTML element and apply it to as many Web pages as you want. To make a global change, simply change the style, and all relevant elements on every page are affected automatically.</p>
<h3 id="three">Multiple Styles Cascade Into One</h3>
<p>Since you can specify CSS information in a number of ways, it is possible to utilise all three CSS methods as required. When you do utilise more than one CSS methodology (eg. using both external and inline style on the one web page), the multiple styles will <strong>cascade</strong>. This means that they will merge together to form a complete &#8216;virtual&#8217; set of style instructions.</p>
<p>Generally speaking, styles using the following rules in descending priority:</p>
<ul>
<li>Inline Style (inside HTML element)</li>
<li>Internal Style Sheet (inside the &lt;head&gt; tag)</li>
<li>External Style Sheet</li>
<li>Browser default style</li>
</ul>
<p>So, an inline style declaration has the highest priority and will override any declared internal or external style for the same HTML element and any default style properties normally applied by the browser.</p>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2008/10/02/css-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

