<?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 learning tutorial</title>
	<atom:link href="http://cssfortheweb.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://cssfortheweb.com</link>
	<description></description>
	<lastBuildDate>Sun, 31 May 2009 18:34:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>More on Backgrounds in CSS</title>
		<link>http://cssfortheweb.com/?p=7</link>
		<comments>http://cssfortheweb.com/?p=7#comments</comments>
		<pubDate>Sun, 31 May 2009 18:34:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cssfortheweb.com/?p=7</guid>
		<description><![CDATA[The property 'background-image' The CSS property background-image is used to set a background picture. As an example of a background image, we use the butterfly. You can, of course, use any other image that you like. To use the picture with the butterfly as a background image on your website you need to simply add [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><strong>The property 'background-image'</strong></p>
<p>The CSS property background-image is used to set a background picture. As an example of a background image, we use the butterfly. You can, of course, use any other image that you like. To use the picture with the butterfly as a background image on your website you need to simply add to the &lt;body&gt; the background-image property and assign the location of the image.</p>
<p>body (<br />
background-color: # FFCC66;<br />
background-image: url ( "butterfly.gif");<br />
)</p>
<p>h1 (<br />
color: # 990000;<br />
background-color: # FC9804;<br />
)</p>
<p><strong>Repetition of the background image: the property 'background-repeat'</strong></p>
<p>Have you noticed in the above example, that by default the butterfly, repeated both horizontally and vertically until the entire screen is covered? The background-repeat property controls this behavior.</p>
<p>background-repeat: repeat-x The image is repeated horizontally<br />
background-repeat: repeat-y The image is repeated vertically<br />
background-repeat: repeat The image is repeated both horizontally and vertically<br />
background-repeat: no-repeat The image is not repeated</p>
<p>For example, in order to prevent the repetition of a background image our code should look like:</p>
<p>body (<br />
background-color: # FFCC66;<br />
background-image: url ( "butterfly.gif");<br />
background-repeat: no-repeat;<br />
)</p>
<p>h1 (<br />
color: # 990000;<br />
background-color: # FC9804;<br />
)</p>
]]></content:encoded>
			<wfw:commentRss>http://cssfortheweb.com/?feed=rss2&amp;p=7</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to Colors and Backgrounds</title>
		<link>http://cssfortheweb.com/?p=5</link>
		<comments>http://cssfortheweb.com/?p=5#comments</comments>
		<pubDate>Wed, 27 May 2009 14:05:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cssfortheweb.com/?p=5</guid>
		<description><![CDATA[In this lesson you will learn how to adjust colors and background colors on your web page. We will also consider more advanced methods, such as positioned and controlled backgrounds. The following CSS properties are explained: Color Background-color Background-image Background-repeat Background-attachment Background-position Background Foreground color: the property 'color' The color property describes the foreground color [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">In this lesson you will learn how to adjust colors and background colors on your web page. We will also consider more advanced methods, such as positioned and controlled backgrounds. The following CSS properties are explained:</p>
<ul>
<li>Color</li>
<li>Background-color</li>
<li>Background-image</li>
<li>Background-repeat</li>
<li>Background-attachment</li>
<li>Background-position</li>
<li>Background</li>
</ul>
<p style="text-align: justify;"><strong>Foreground color: the property 'color'</strong></p>
<p>The color property describes the foreground color of an element. Suppose we want that all headings in a document are in red. All titles are compatible with the HTML element &lt;h1&gt;. The following code sets the color of &lt;h1&gt; elements to red.</p>
<p>h1 (<br />
color: # ff0000;<br />
)</p>
<p>Colors can be used as hexadecimal values, as in the example above (# ff0000), with the English color names ( "red") or as RGB values (rgb (255,0,0)).</p>
<p><strong>Background Color: the property 'background-color'</strong></p>
<p>The background-color property describes the background color of an element. The element &lt;body&gt; contains any content of an HTML document. Therefore, in order to set the background color of the whole page you need to change the property 'background-color' &lt;body&gt; for the element to be allocated.</p>
<p>You can also use other elements, such as Headers or plain text to assign a background color. In the following example, the &lt;body&gt; - and the elements &lt;h1&gt; will be assigned different background colors.</p>
<p>body (<br />
background-color: # FFCC66;<br />
)</p>
<p>h1 (<br />
color: # 990000;<br />
background-color: # FC9804;<br />
)</p>
<p>Note that the element &lt;h1&gt; has two properties and have assigned them with a semicolon as a separator.</p>
]]></content:encoded>
			<wfw:commentRss>http://cssfortheweb.com/?feed=rss2&amp;p=5</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Applying CSS in HTML documents</title>
		<link>http://cssfortheweb.com/?p=3</link>
		<comments>http://cssfortheweb.com/?p=3#comments</comments>
		<pubDate>Mon, 25 May 2009 10:33:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cssfortheweb.com/?p=3</guid>
		<description><![CDATA[There are three ways that you can use CSS in an HTML document. These methods are all described below. We recommend that you focus on the last of the three options. Method 1: In-line (style attribute) One way of inserting CSS to a HTML document is with the attribute style. In the above example with [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">There are three ways that you can use CSS in an HTML document. These methods are all described below. We recommend that you focus on the last of the three options.</p>
<p><strong>Method 1: In-line (style attribute)</strong></p>
<p>One way of inserting CSS to a HTML document is with the attribute style. In the above example with the red background, building site, it can be as follows:</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt; Example &lt;/ title&gt;<br />
&lt;/ head&gt;<br />
&lt;body style="background-color: #FF0000;"&gt;<br />
&lt;p&gt; That is a red page. &lt;/ p&gt;<br />
&lt;/ body&gt;<br />
&lt;/ html&gt;</p>
<p><strong>Method 2: In-document (tag-style)</strong></p>
<p>Another way is the CSS code in the HTML with &lt;style&gt; tag involved, for example:</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt; Example &lt;/ title&gt;<br />
&lt;style type="text/css"&gt;<br />
body (background-color: # FF0000;)<br />
&lt;/ style&gt;<br />
&lt;/ head&gt;<br />
&lt;body&gt;<br />
&lt;p&gt; That is a red page. &lt;/ p&gt;<br />
&lt;/ body&gt;<br />
&lt;/ html&gt;</p>
<p><strong>Method 3: External (referring to a stylesheet)</strong></p>
<p>The recommended method is to use a so-called external stylesheet to refer to. In all examples of this tutorial we will apply this method. An external stylesheet is simply a text file with the extension ".Css". Like any other file, you can keep a stylesheet on your web server or your hard drive.</p>
<p>Let's say your stylesheet called style.css is located in the folder "style". The trick in the whole thing is to refer from the HTML  document (default.htm) to the stylesheet (style.css). Such a reference can be used with a line of HTML code that looks like that:</p>
<p>&lt;link rel="stylesheet" type="text/css" href="style/style.css" /&gt;</p>
<p>You see, the path to our stylesheet is using the href attribute specified. The line of code must be written in the header of the HTML document, between the &lt;head&gt; and &lt;/ head&gt; tags. It should be inserted like this:</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt; My Document &lt;/ title&gt;<br />
&lt;link rel="stylesheet" type="text/css" href="style/style.css" /&gt;<br />
&lt;/ head&gt;<br />
&lt;body&gt;<br />
...</p>
]]></content:encoded>
			<wfw:commentRss>http://cssfortheweb.com/?feed=rss2&amp;p=3</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
