<?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 code,css tutorial</title>
	<atom:link href="http://www.csscodes.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.csscodes.net</link>
	<description>free css code</description>
	<lastBuildDate>Sun, 29 May 2011 20:30:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Background Image &#8211; Repeat Horizontally or Vertically</title>
		<link>http://www.csscodes.net/css-background-image-repeat-horizontally-or-vertically-codes.html</link>
		<comments>http://www.csscodes.net/css-background-image-repeat-horizontally-or-vertically-codes.html#comments</comments>
		<pubDate>Sun, 29 May 2011 20:30:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.csscodes.net/?p=16</guid>
		<description><![CDATA[By default, the background-image property repeats an image both horizontally and vertically. Some images should be repeated only horizontally or vertically, or they will look strange, like this: &#160; &#160;]]></description>
			<content:encoded><![CDATA[<p>By default, the background-image property repeats an image both horizontally  and vertically.</p>
<p>Some images should be repeated only horizontally or vertically, or they  will look strange, like this:
<p>&nbsp;</p><p style="float: left;margin: 4px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-3734342381763643";
/* Css Codes */
google_ad_slot = "4936977016";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p></p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="css" style="font-family:monospace;">body
<span class="br0">&#123;</span>
<span class="kw1">background-image</span><span class="sy0">:</span><span class="kw2">url</span><span class="br0">&#40;</span><span class="st0">'gradient2.png'</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span>
&nbsp;
body
<span class="br0">&#123;</span>
<span class="kw1">background-image</span><span class="sy0">:</span><span class="kw2">url</span><span class="br0">&#40;</span><span class="st0">'gradient2.png'</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="kw1">background-repeat</span><span class="sy0">:</span><span class="kw2">repeat-x</span><span class="sy0">;</span>
<span class="br0">&#125;</span></pre></div></div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.csscodes.net/css-background-image-repeat-horizontally-or-vertically-codes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Background Color</title>
		<link>http://www.csscodes.net/css-background-color-codes.html</link>
		<comments>http://www.csscodes.net/css-background-color-codes.html#comments</comments>
		<pubDate>Sun, 29 May 2011 20:29:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.csscodes.net/?p=14</guid>
		<description><![CDATA[The background-color property specifies the background color of an element. The background color of a page is defined in the body selector: With CSS, a color is most often specified by: a HEX value &#8211; like &#8220;#ff0000&#8243; an RGB value &#8230; <a href="http://www.csscodes.net/css-background-color-codes.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The background-color property specifies the background color of an element.</p>
<p>The background color of a page is defined in the body selector:</p>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="css" style="font-family:monospace;">body <span class="br0">&#123;</span><span class="kw1">background-color</span><span class="sy0">:</span><span class="re0">#b0c4de</span><span class="sy0">;</span><span class="br0">&#125;</span></pre></div></div>
<p>With CSS, a color is most often specified by:</p>
<ul>
<li>a HEX value &#8211; like &#8220;#ff0000&#8243;</li>
<li>an RGB value &#8211; like &#8220;rgb(255,0,0)&#8221;</li>
<li>a color name &#8211; like &#8220;red&#8221;</li>
</ul>
<p>Look at <a href="http://www.w3schools.com/css/css_colors_legal.asp">CSS Color Values</a> for a complete  list of possible color values.</p>
<p>In the example below, the h1, p, and div elements have different background colors:</p>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="css" style="font-family:monospace;">h1 <span class="br0">&#123;</span><span class="kw1">background-color</span><span class="sy0">:</span><span class="re0">#6495ed</span><span class="sy0">;</span><span class="br0">&#125;</span>
p <span class="br0">&#123;</span><span class="kw1">background-color</span><span class="sy0">:</span><span class="re0">#e0ffff</span><span class="sy0">;</span><span class="br0">&#125;</span>
div <span class="br0">&#123;</span><span class="kw1">background-color</span><span class="sy0">:</span><span class="re0">#b0c4de</span><span class="sy0">;</span><span class="br0">&#125;</span></pre></div></div>
<h2>Background Image</h2>
<p>The background-image property specifies an image to use as the background of an  element.</p>
<p>By default, the image is repeated so it covers the  entire element.</p>
<p>The background image for a page can be set like this:</p>
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="css" style="font-family:monospace;">body <span class="br0">&#123;</span><span class="kw1">background-image</span><span class="sy0">:</span><span class="kw2">url</span><span class="br0">&#40;</span><span class="st0">'paper.gif'</span><span class="br0">&#41;</span><span class="sy0">;</span><span class="br0">&#125;</span></pre></div></div>
<p>Below is an example of a bad combination of text and background image. The  text is almost not readable:</p>
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="css" style="font-family:monospace;">body <span class="br0">&#123;</span><span class="kw1">background-image</span><span class="sy0">:</span><span class="kw2">url</span><span class="br0">&#40;</span><span class="st0">'bgdesert.jpg'</span><span class="br0">&#41;</span><span class="sy0">;</span><span class="br0">&#125;</span></pre></div></div>
<h4>Incoming search terms:</h4><ul><li>www csscodes net</li><li>csscodes me</li></ul><!-- SEO SearchTerms Tagging 2 Plugin -->]]></content:encoded>
			<wfw:commentRss>http://www.csscodes.net/css-background-color-codes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The class Selector</title>
		<link>http://www.csscodes.net/css-the-class-selector-codes.html</link>
		<comments>http://www.csscodes.net/css-the-class-selector-codes.html#comments</comments>
		<pubDate>Sun, 29 May 2011 20:25:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.csscodes.net/?p=11</guid>
		<description><![CDATA[The class selector is used to specify a style for a group of elements. Unlike the id selector, the class selector is most often used on several elements. This allows you to set a particular style for many HTML elements &#8230; <a href="http://www.csscodes.net/css-the-class-selector-codes.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The class selector is used to specify a style for a group of elements. Unlike the id  selector, the class selector is most often used on several elements.</p>
<p>This allows you to set a particular style for many HTML elements with the same class.</p>
<p>The class selector uses the HTML class  attribute, and is defined with a &#8220;.&#8221;</p>
<p>In the example  below, all HTML elements with will be center-aligned:</p>
<div id="wpshdo_6" class="wp-synhighlighter-outer"><div id="wpshdt_6" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_6"></a><a id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block;"><pre class="css" style="font-family:monospace;">.<span class="kw2">center</span> <span class="br0">&#123;</span><span class="kw1">text-align</span><span class="sy0">:</span><span class="kw2">center</span><span class="sy0">;</span><span class="br0">&#125;</span></pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.csscodes.net/css-the-class-selector-codes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The id and class Selectors</title>
		<link>http://www.csscodes.net/css-the-id-and-class-selectors-codes.html</link>
		<comments>http://www.csscodes.net/css-the-id-and-class-selectors-codes.html#comments</comments>
		<pubDate>Sun, 29 May 2011 20:20:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.csscodes.net/?p=9</guid>
		<description><![CDATA[The id selector is used to specify a style for a single, unique element. The id selector uses the id attribute of the HTML element, and is defined with a &#8220;#&#8221;. The style rule below will be applied to the &#8230; <a href="http://www.csscodes.net/css-the-id-and-class-selectors-codes.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The id selector is used to specify a style for a single, unique element.</p>
<p>The id selector uses the id attribute of the HTML element, and is defined  with a &#8220;#&#8221;.</p>
<p>The style rule below will be applied to the element with id=&#8221;para1&#8243;:</p>
<div id="wpshdo_7" class="wp-synhighlighter-outer"><div id="wpshdt_7" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_7"></a><a id="wpshat_7" class="wp-synhighlighter-title" href="#codesyntax_7"  onClick="javascript:wpsh_toggleBlock(7)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_7" onClick="javascript:wpsh_code(7)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_7" onClick="javascript:wpsh_print(7)" title="Print code"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.csscodes.net/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_7" class="wp-synhighlighter-inner" style="display: block;"><pre class="css" style="font-family:monospace;"><span class="re0">#para1</span>
<span class="br0">&#123;</span>
<span class="kw1">text-align</span><span class="sy0">:</span><span class="kw2">center</span><span class="sy0">;</span>
<span class="kw1">color</span><span class="sy0">:</span><span class="kw2">red</span><span class="sy0">;</span>
<span class="br0">&#125;</span></pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.csscodes.net/css-the-id-and-class-selectors-codes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

