<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Wiki ASP.NET &#187; CSS</title>
	<atom:link href="http://wikiaspnet.wordpress.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://wikiaspnet.wordpress.com</link>
	<description>A Wiki place for our ASP.NET Crossbone project</description>
	<lastBuildDate>Fri, 27 Nov 2009 02:36:45 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='wikiaspnet.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e66ec5a00ff7c5daa0ab68d1b109f227?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Wiki ASP.NET &#187; CSS</title>
		<link>http://wikiaspnet.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://wikiaspnet.wordpress.com/osd.xml" title="Wiki ASP.NET" />
		<item>
		<title>CSS Friendly Adapters and Skins</title>
		<link>http://wikiaspnet.wordpress.com/2008/08/18/css-friendly-adapters-and-skins/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/08/18/css-friendly-adapters-and-skins/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 21:01:03 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=121</guid>
		<description><![CDATA[ASP.NET CSS Friendly Control Adapters http://www.asp.net/CSSAdapters/ http://www.codeplex.com/cssfriendly
I guess this exists because Microsoft realizes that some of its rendered HTML code are not that easy to apply CSS to. So this adapter comes and stands in the way of the rendering process to generate different sets of HTML. It&#8217;s pretty cool because at the very least [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=121&subd=wikiaspnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>ASP.NET CSS Friendly Control Adapters<br /> <a id="e" title="http://www.asp.net/CSSAdapters/Menu.aspx" href="http://www.asp.net/CSSAdapters/Menu.aspx">http://www.asp.net/CSSAdapters/</a><br /> <a id="nvpo" title="http://www.codeplex.com/cssfriendly" href="http://www.codeplex.com/cssfriendly">http://www.codeplex.com/cssfriendly</a></p>
<p>I guess this exists because Microsoft realizes that some of its rendered HTML code are not that easy to apply CSS to. So this adapter comes and stands in the way of the rendering process to generate different sets of HTML. It&#8217;s pretty cool because at the very least it exposes the way to render customized HTML based on whatever requirements.</p>
<p>However, I don&#8217;t find it useful for all the controls it currently supports. On the contrary, some make it even harder to apply CSS to. With the help of Skin files, the look and feel of controls such GridView or DetailsView can be pretty well customized.</p>
<p>As of any other MS technologies, there are always more than one way of doing it. Whatever fits your need should be used&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/121/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/121/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=121&subd=wikiaspnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/08/18/css-friendly-adapters-and-skins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>ScrollBar styles</title>
		<link>http://wikiaspnet.wordpress.com/2008/07/01/scrollbar-styles/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/07/01/scrollbar-styles/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 01:04:09 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=77</guid>
		<description><![CDATA[Apparently scroll bar styles are only supported by IE. Diddn&#8217;t realize this until today.
Regardless, I think it&#8217;s a pretty cool thing to have and Firefox and Safari will eventually adopt it. Here&#8217;s a site to generate the CSS codes. It&#8217;s pretty darn good&#8230;
http://www.spectrum-research.com/V2/projects_scrollbar_generator.asp
http://www.spectrum-research.com/V2/generators/scrollbar.asp
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=77&subd=wikiaspnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Apparently scroll bar styles are only supported by IE. Diddn&#8217;t realize this until today.</p>
<p>Regardless, I think it&#8217;s a pretty cool thing to have and Firefox and Safari will eventually adopt it. Here&#8217;s a site to generate the CSS codes. It&#8217;s pretty darn good&#8230;</p>
<p><a href="http://www.spectrum-research.com/V2/projects_scrollbar_generator.asp" target="_blank">http://www.spectrum-research.com/V2/projects_scrollbar_generator.asp</a></p>
<p><a href="http://www.spectrum-research.com/V2/generators/scrollbar.asp" target="_blank">http://www.spectrum-research.com/V2/generators/scrollbar.asp</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/77/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/77/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=77&subd=wikiaspnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/07/01/scrollbar-styles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS CSS CSS</title>
		<link>http://wikiaspnet.wordpress.com/2008/06/26/resources-and-tutorials/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/06/26/resources-and-tutorials/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 03:12:45 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=76</guid>
		<description><![CDATA[Don&#8217;t know how to make your website pretty? Nothing new, it&#8217;s always a struggle&#8230; TURN FOR HELP AND LEARN!
WebDesignerWall &#8211; This site is just GOD LIKE. It&#8217;s beyond awesomeness!! Don&#8217;t know how? LEARN!!
Below are several other misc sites, none has tutorials except the first couple, but one of the best ways, and the first step, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=76&subd=wikiaspnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Don&#8217;t know how to make your website pretty? Nothing new, it&#8217;s always a struggle&#8230; TURN FOR HELP AND LEARN!</p>
<p><a href="http://www.webdesignerwall.com/" target="_blank">WebDesignerWall</a> &#8211; This site is just GOD LIKE. It&#8217;s beyond awesomeness!! Don&#8217;t know how? LEARN!!</p>
<p>Below are several other misc sites, none has tutorials except the first couple, but one of the best ways, and the first step, of learning how to make things pretty is to look at pretty things, isn&#8217;t it? Look at the sample works, featured sites or whatever&#8230;</p>
<p><a href="http://www.ndesign-studio.com/" target="_blank">N.Design Studio</a></p>
<p><a href="http://bestwebgallery.com/" target="_blank">BestWebGallery</a></p>
<p><a href="http://www.flashmint.com/" target="_blank">FlashMint</a></p>
<p><a href="http://www.skytemedia.com/" target="_blank">StyleMedia</a></p>
<p><a href="http://www.ekonline.com/" target="_blank">EKOnline</a></p>
<p><a href="http://www.graphicallyspeaking.ca/" target="_blank">GraphicallySpeaking</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/76/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/76/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=76&subd=wikiaspnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/06/26/resources-and-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS &#8211; Fonts</title>
		<link>http://wikiaspnet.wordpress.com/2008/06/17/css-fonts/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/06/17/css-fonts/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 20:42:16 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=70</guid>
		<description><![CDATA[font-family
CSS defines 5 generic font families: (You can employ any of these families in a document by using the property font-family.)

Serif fonts
These fonts are proportional and have serifs. A font is proportional if all characters in the font have different widths due to their various sizes. Serifs are the decorations on the ends of strokes [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=70&subd=wikiaspnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h3><span style="color:#ff6600;">font-family</span></h3>
<p>CSS defines <strong>5</strong> generic font families: (You can employ any of these families in a document by using the property <strong>font-family</strong>.)</p>
<ol>
<li><strong>Serif fonts</strong><br />
These fonts are proportional and have serifs. A font is proportional if all characters in the font have different widths due to their various sizes. Serifs are the decorations on the ends of strokes within each character, such as little lines at the top and bottom of a lowercase l, or at the bottom of each leg of an uppercase A.</li>
<li><strong>Sans-serif fonts</strong><br />
These fonts are proportional and do not have serifs.</li>
<li><strong>Monospace fonts</strong><br />
Monospace fonts are not proportional. These fonts may or may not have serifs. If a font has uniform character widths, it is classified as monospace, regardless of the presence of serifs.</li>
<li><strong>Cursive fonts</strong><br />
These fonts attempt to emulate human handwriting. Usually, they are composed largely of curves and have stroke decorations that exceed those found in serif fonts. For example, an uppercase A might have a small curl at the bottom of its left leg or be composed entirely of swashes and curls. Examples of cursive fonts are Zapf Chancery, Author, and Comic Sans.</li>
<li><strong>Fantasy fonts</strong><br />
Such fonts are not really defined by any single characteristic other than our inability to easily classify them in one of the other families. A few such fonts are Western, Woodblock, and Klingon.</li>
</ol>
<p>By combining specific font names with generic font families, you can create documents that come out, if not exact, at least close to your intentions.<br />
<span style="color:#3366ff;"><strong>h1 {font-family: Georgia, serif;}<br />
</strong></span> Based on this list, a user agent will look for the fonts in the order they&#8217;re listed. If none of the listed fonts are available, then it will simply pick a serif font that is available.<br />
<span style="color:#3366ff;"><strong>p {font-family: Times, TimesNR, &#8216;New Century Schoolbook&#8217;, Georgia, &#8216;New York&#8217;, serif;}</strong></span></p>
<hr />
<h3><span style="color:#ff6600;"><strong>font-weight</strong></span></h3>
<p><strong> </strong>Values:<br />
<span style="color:#3366ff;"><strong>normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit</strong></span></p>
<p>One of the numeric values (100, etc.), or one of the numeric values plus one of the relative values (bolder or lighter)</p>
<hr />
<h3><span style="color:#ff6600;"><strong>font-size</strong></span></h3>
<p><strong> </strong>There are seven absolute-size values for font-size: xx-small, x-small, small, medium, large, x-large, and xx-large. These are not defined precisely, but are relative to each other:</p>
<p>p.one {font-size: xx-small;}<br />
p.two {font-size: x-small;}<br />
p.three {font-size: small;}<br />
p.four {font-size: medium;}<br />
p.five {font-size: large;}<br />
p.six {font-size: x-large;}<br />
p.seven {font-size: xx-large;}</p>
<p>The difference (or scaling factor) between one absolute size and the next should be about 1.5 going up the ladder, or 0.66 going down. Different user agents have assigned the &#8220;default&#8221; font size to different absolute keywords. Note that there are seven absolute-size keywords, just as there are seven font sizes (e.g., &lt;font size=&#8221;5&#8243;&gt;). The typical default font size was historically 3.</p>
<p>In a way, percentage values are very similar to the relative-size keywords. A percentage value is always computed in terms of whatever size is inherited from an element&#8217;s parent.</p>
<p><strong>Note:</strong> Although font-size is inherited in CSS, it is the computed values that are inherited, not percentages.</p>
<hr />
<h3><span style="color:#ff6600;">font-style</span></h3>
<ul>
<li><strong>Italic text</strong> is a separate font face, with small changes made to the structure of each letter to account for the altered appearance. This is especially true of serif fonts, where, in addition to the fact that the text characters &#8220;lean,&#8221; the serifs may be altered in an italic face.</li>
<li><strong>Oblique text</strong>, on the other hand, is simply a slanted version of the normal, upright text.</li>
</ul>
<hr />
<h3><span style="color:#ff6600;">font-variant<br />
</span></h3>
<p>Values:<br />
small-caps | normal | inherit<br />
Purpose:<br />
Turns fonts to capitalized characters, with the originally capitalized characters slightly larger than the non-capitalized ones.</p>
<hr />
<h3><span style="color:#ff6600;">font</span></h3>
<p><span style="color:#3366ff;"><strong> h1 {font: italic 900 small-caps 30px Verdana, Helvetica, Arial, sans-serif;}<br />
h2 {font: bold normal italic 24px Verdana, Helvetica, Arial, sans-serif;}</strong></span></p>
<p><span style="color:#ff0000;">It&#8217;s important to realize, however, that this free-for-all situation applies only to the first three values of font. The last two are much stricter in their behavior. Not only must font-size and font-family appear in that order as the last two values in the declaration, but both must always be present in a font declaration.</span></p>
<p>So far, we&#8217;ve treated font as though it has only five values, which isn&#8217;t quite true. It is also possible to set the line-height using font, despite that fact that line-height is a text property, not a font property. It&#8217;s done as a sort of addition to the font-size value, separated from it by a forward slash (/):</p>
<p><strong><span style="color:#3366ff;">body {font-size: 12px;}<br />
h2 {font: bold italic </span><span style="color:#3366ff;"><span style="color:#ff0000;">200%/1.2 Verdana</span>, Helvetica, Arial, sans-serif;}</span></strong><br />
This addition of a value for line-height is entirely optional, just as the first three font values are. If you do include a line-height, remember that the font-size always comes <strong>before</strong> line-height, never after, and the two are always separated by a slash.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/70/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/70/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=70&subd=wikiaspnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/06/17/css-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS Keyword &#8220;inherit&#8221;</title>
		<link>http://wikiaspnet.wordpress.com/2008/06/05/css-keyword-inherit/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/06/05/css-keyword-inherit/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 01:19:18 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=66</guid>
		<description><![CDATA[&#8220;inherit&#8221; makes the value of a property the same as the value of its parent element. In most cases, you don&#8217;t need to specify inheritance, since most properties inherit naturally.  Ordinarily, directly assigned styles override inherited styles, but  inherit can reverse that behavior.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=66&subd=wikiaspnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&#8220;inherit&#8221; makes the value of a property the same as the value of its parent element. In most cases, you don&#8217;t need to specify inheritance, since most properties inherit naturally.  Ordinarily, directly assigned styles override inherited styles, but  <tt>inherit</tt> can reverse that behavior.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/66/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/66/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=66&subd=wikiaspnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/06/05/css-keyword-inherit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS url</title>
		<link>http://wikiaspnet.wordpress.com/2008/06/05/css-url/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/06/05/css-url/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 01:14:29 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=65</guid>
		<description><![CDATA[There are absolute url and relative url. In CSS, relative URLs are relative to the style sheet itself, not to the HTML document that uses the style sheet.
Example:
@import url(special/toppings.css);
Note that there cannot be a space between the url and  the opening parenthesis:
body {background: url(http://www.pix.web/picture1.jpg);}   /* correct */
body {background: url  (images/picture2.jpg);}  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=65&subd=wikiaspnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>There are absolute url and relative url. In CSS, <strong>relative URLs</strong> are relative to the style sheet itself, not to the HTML document that uses the style sheet.</p>
<p>Example:</p>
<p><strong><span style="color:#3366ff;">@import url(special/toppings.css);</span></strong></p>
<p class="docText">Note that there cannot be a space between the <tt>url</tt> and  the opening parenthesis:</p>
<pre><span style="color:#3366ff;"><strong>body {background: url(http://www.pix.web/picture1.jpg);}   /* correct */
body {background: url  (images/picture2.jpg);}          /* INCORRECT */</strong></span></pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/65/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/65/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=65&subd=wikiaspnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/06/05/css-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>Web-Safe Color Def&#8217;n</title>
		<link>http://wikiaspnet.wordpress.com/2008/06/05/web-safe-colors/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/06/05/web-safe-colors/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 01:09:24 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=64</guid>
		<description><![CDATA[With hexadecimal notation, any triplet that uses the values 00, 33, 66, 99, CC, and FF is considered to be web-safe. Example: #00CC66, #FF00FF, etc&#8230;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=64&subd=wikiaspnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>With hexadecimal notation, any triplet that uses the values 00, 33, 66, 99, CC, and FF is considered to be web-safe. Example: #00CC66, #FF00FF, etc&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/64/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/64/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=64&subd=wikiaspnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/06/05/web-safe-colors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS &#8211; Specificity &amp; Inheritance &amp; Cascade</title>
		<link>http://wikiaspnet.wordpress.com/2008/05/29/css-structures/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/05/29/css-structures/#comments</comments>
		<pubDate>Thu, 29 May 2008 20:13:48 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=60</guid>
		<description><![CDATA[When the same element is selected by two or more rules, specificity is used to determine which rule wins out. A selector&#8217;s specificity is determined by the components of the selector itself. A specificity value is expressed in four parts, like this: 0,0,0,0. The actual specificity of a selector is determined as follows:

For every ID [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=60&subd=wikiaspnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When the same element is selected by two or more rules, specificity is used to determine which rule wins out. A selector&#8217;s specificity is determined by the components of the selector itself. A specificity value is expressed in four parts, like this: <span style="color:#ff6600;"><strong>0,0,0,0.</strong></span> The actual specificity of a selector is determined as follows:</p>
<ul>
<li>For every ID attribute value given in the selector, add <strong>0,1,0,0.</strong></li>
<li>For every class attribute value, attribute selection, or pseudo-class given in the selection, add <strong>0,0,1,0.</strong></li>
<li>For every element and pseudo-element given in the selector, add <strong>0,0,0,1.</strong></li>
<li>Combinators and the universal selector do not contribute anything to the specificity.<br />
Universal selector has a specificity of 0, 0, 0, 0<br />
Combinators have no specificity at all, not even zero.</li>
</ul>
<p>Examples:<br />
<span style="color:#3366ff;"><strong>h1 {color: red;}  /* specificity = 0,0,0,1 */<br />
p em {color: purple;}  /* specificity = 0,0,0,2 */<br />
.grape {color: purple;}  /* specificity = 0,0,1,0 */<br />
*.bright {color: yellow;}  /* specificity = 0,0,1,0 */<br />
p.bright em.dark {color: maroon;}  /* specificity = 0,0,2,2 */<br />
#id216 {color: blue;}  /* specificity = 0,1,0,0 */<br />
div#sidebar *[href] {color: silver;}  /* specificity = 0,1,1,1 */<br />
</strong></span><br />
<span style="color:#3366ff;"><strong>h1 {color: red;}  /* 0,0,0,1 */<br />
body h1 {color: green;}  /* 0,0,0,2  (winner)*/</strong></span></p>
<p><strong>h2.grape {color: purple;}  /* 0,0,1,1 (winner) */<br />
h2 {color: silver;}  /* 0,0,0,1 */</strong></p>
<p><strong>html &gt; body table tr[id="totals"] td ul &gt; li {color: maroon;}  /* 0,0,1,7 */<br />
li#answer {color: navy;}  /* 0,1,0,1  (winner) */</strong></p>
<ul>
<li>Specificity is sorted from left to right. A specificity of 1, 0, 0, 0 will win out over any specificity that begins with a 0, no matter what the rest of the numbers might be.</li>
<li>Every inline style declaration has a specificity of 1, 0, 0, 0</li>
<li>Important declarations:<br />
<span style="color:#3366ff;"><strong>p.dark {color: #333 <span style="color:#ff0000;">!important</span>; background: white <span style="color:#ff0000;">!important</span>;}<br />
</strong></span>Declarations that are marked <strong>!important</strong> do not have a special specificity value, but are instead considered separately from nonimportant declarations. In effect, all <strong>!important</strong> declarations are grouped together, and specificity conflicts are resolved relative to each other. Similarly, all nonimportant declarations are considered together, with property conflicts resolved using specificity. In any case where an important and a nonimportant declaration conflict, the important declaration always wins.</li>
</ul>
<p>=====================================================================================</p>
<p><strong>Inheritance</strong> is the mechanism by which styles are applied not only to a specified element, but also to its descendants.</p>
<p>Inherited values have no specificity at all, not even zero specificity.<br />
Example:<br />
<span style="color:#3366ff;"><strong>* {color: gray;}<br />
h1#page-title {color: black;}</strong></span><br />
<span style="color:#008080;"><strong>&lt;h1 id=&#8221;page-title&#8221;&gt;Meerkat &lt;em&gt;Central&lt;/em&gt;&lt;/h1&gt;<br />
&lt;p&gt;<br />
Welcome to the best place on the web for meerkat information!<br />
&lt;/p&gt;</strong></span><br />
In this example, the word &#8220;central&#8221; will be gray because zero specificity defeats no specificity.</p>
<p>======================================================================================</p>
<p>Cascade rules for CSS:</p>
<ol>
<li>Find all rules that contain a selector that matches a given element.</li>
<li>Sort by explicit weight all declarations applying to the element. Those rules marked <strong>!important</strong> are given higher weight than those that are not. Sort by origin all declarations applying to a given element. There are three origins: <strong>author, reader, and user agent</strong>. Under normal circumstances, the author&#8217;s styles win out over the reader&#8217;s styles. !important reader styles are stronger than any other styles, including !important author styles. Both author and reader styles override the user agent&#8217;s default styles.</li>
<li>Sort by specificity all declarations applying to a given element. Those elements with a higher specificity have more weight than those with lower specificity.</li>
<li>Sort by order all declarations applying to a given element. The later a declaration appears in the style sheet or document, the more weight it is given. Declarations that appear in an imported style sheet are considered to come before all declarations within the style sheet that imports them.</li>
</ol>
<p>There are five levels to consider in terms of declaration weight (from the origin of the rule). In order of most to least weight, these are:</p>
<ol>
<li>Reader important declarations</li>
<li>Author important declarations</li>
<li>Author normal declarations</li>
<li>Reader normal declarations</li>
<li>User agent declarations</li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/60/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/60/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=60&subd=wikiaspnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/05/29/css-structures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS Selectors</title>
		<link>http://wikiaspnet.wordpress.com/2008/05/26/css-selectors/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/05/26/css-selectors/#comments</comments>
		<pubDate>Tue, 27 May 2008 02:51:09 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=57</guid>
		<description><![CDATA[Each CSS rule has 2 fundamental parts &#8211; the selector and the declaration block.
Example: h1 {color: red; background: yellow;} &#8211; h1 is the selector, and {&#8230;} is the declarations.
A value is either a single keyword or a space-separated list of one or more keywords that was permitted for that property.
Example: p {font: medium Helvetica;}
If you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=57&subd=wikiaspnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Each CSS rule has 2 fundamental parts &#8211; <strong>the selector</strong> and the <strong>declaration block</strong>.<br />
Example: <span style="color:#3366ff;"><strong>h1 {color: red; background: yellow;}</strong></span> &#8211; h1 is the selector, and {&#8230;} is the declarations.</p>
<p>A value is either a single keyword or a space-separated list of one or more keywords that was permitted for that property.<br />
Example: <span style="color:#3366ff;"><strong>p {font: medium Helvetica;}</strong></span></p>
<p><span style="color:#ff0000;">If you use either an incorrect property or value in a declaration, the whole thing will be ignored.</span></p>
<p>CSS keywords are separated by spaces except in one instance. In the CSS property font, there is exactly one place where a forward slash <strong>(/)</strong> can be used to separate two specific keywords.<br />
Example: <span style="color:#3366ff;"><strong>h2 {font: large/150% sans-serif;}</strong></span></p>
<p>=================================================================================================</p>
<h3><span style="color:#ff6600;"><strong>1. Universal selector</strong></span></h3>
<p>An asterisk <strong>(*)</strong>. This selector matches any element at all.<br />
Example: <span style="color:#3366ff;"><strong>* {color: red;}</strong></span></p>
<p>=================================================================================================</p>
<p><span style="color:#3366ff;"><strong></strong></span></p>
<h3><span style="color:#ff6600;"><strong>2. Grouping selectors and declarations</strong></span></h3>
<p><span style="color:#3366ff;"><strong>h1, h2, h3, h4, h5, h6 {color: gray; background: white; padding: 0.5em; border: 1px solid black; font-family: Charcoal, sans-serif;}</strong></span></p>
<p>=================================================================================================</p>
<h3><span style="color:#ff6600;"><strong>3. Class selectors</strong></span></h3>
<p><strong><span style="color:#3366ff;">.warning {font-style: italic;}<br />
span.warning {font-weight: bold;}</span></strong></p>
<p>In HTML, it&#8217;s possible to have a space-separated list of words in a single class value.<br />
<span style="color:#3366ff;"><strong>&lt;p class=&#8221;urgent warning&#8221;&gt;Hello&lt;/p&gt;</strong></span><br />
The order of the words <strong>doesn&#8217;t</strong> actually matter; <span style="color:#3366ff;"><span style="text-decoration:underline;">warning urgent</span></span> would also suffice.</p>
<p>Say you want all elements with a class of warning to be boldface, those with a class of urgent to be italic, and those elements with both values to have a silver background. This would be written as follows:<br />
<span style="color:#3366ff;"><strong> .warning {font-weight: bold;}<br />
.urgent {font-style: italic;}<br />
.warning.urgent {background: silver;}</strong></span></p>
<p><span style="color:#ff0000;">By chaining two class selectors together, you can select only those elements that have both class names, in any order.<br />
</span>If a multiple class selector contains a name that is not in the space-separated list, then the match will fail. Consider the following rule:<br />
<span style="color:#3366ff;"><strong>p.warning.help {background: red;}<br />
</strong></span>The selector will match only those p elements with a class containing the words <span style="color:#3366ff;"><span style="text-decoration:underline;">warning</span></span> and <span style="text-decoration:underline;"><span style="color:#3366ff;">help</span></span>. Therefore, it will not match a p element with just the words warning and urgent in its class attribute. It would, however, match the following:<br />
<span style="color:#3366ff;"><strong>&lt;p class=&#8221;urgent warning help&#8221;&gt;Help me!&lt;/p&gt;</strong></span></p>
<p><span style="color:#ff0000;"><strong>Note:</strong></span> class and ID are case-sensitive in HTML.</p>
<p>=================================================================================================</p>
<h3><span style="color:#ff6600;"><strong><span>4. ID selectors:</span></strong></span></h3>
<p><span style="color:#3366ff;"><strong> #first-para {font-weight: bold;}</strong></span><br />
This rule applies boldface text to any element whose id attribute has a value of <span style="text-decoration:underline;">frist-para</span>.<br />
<span style="color:#ff0000;"> Between class selector and ID selector, IDs carry more weight when you&#8217;re trying to determine which styles should be applied to a given element.</span></p>
<p>=================================================================================================</p>
<h3><span style="color:#ff6600;"><strong>5. Attribute Selectors:</strong></span></h3>
<p><span style="color:#3366ff;"><strong> planet[moons] {font-weight: bold;}<br />
*[title] {font-weight: bold;}<br />
a[href][title] {font-weight: bold;}<br />
planet[moons="1"] {font-weight: bold;}<br />
a[href="http://www.w3.org/"][title="W3C Home"] {font-size: 200%;}</strong></span></p>
<p><span style="color:#ff0000;"><strong>Note:</strong></span><br />
ID selectors and attribute selectors that target the id attribute are not precisely the same. In other words, there is a subtle but crucial difference between <span style="color:#3366ff;">h1#page-title and h1[id="page-title"]. <span style="color:#ff0000;"><strong>The Specificity is different. ID selectors have a higher specificity (more important) than attribute selectors. </strong></span><br />
</span></p>
<ul>
<li><span style="color:#000000;">Selection based on partial attribute values:</span><strong><span style="color:#3366ff;"><br />
p[class~="warning"] {font-weight: bold;}<br />
img[title~="Figure"] {border: 1px solid gray;}</span></strong></li>
<li><span style="color:#3366ff;"><strong>[foo^="bar"]</strong></span><br />
Selects any element with an attribute foo whose value begins with &#8220;bar&#8221;.</li>
<li><strong><span style="color:#3366ff;">[foo$="bar"]</span></strong><br />
Selects any element with an attribute foo whose value ends with &#8220;bar&#8221;.</li>
<li><span style="color:#3366ff;"><strong>[foo*="bar"]<br />
</strong></span>Selects any element with an attribute foo whose value contains the substring &#8220;bar&#8221;.</li>
<li>The particular attribute selector:<br />
<span style="color:#3366ff;"><strong>*[lang|="en"] {color: white;}<br />
</strong></span>This rule will select any element whose lang attribute is equal to en or begins with en-. Therefore, the first three elements below markup would be selected, but the last two would not:<br />
<span style="color:#3366ff;"><strong>&lt;h1 lang=&#8221;en&#8221;&gt;Hello!&lt;/h1&gt;<br />
&lt;p lang=&#8221;en-us&#8221;&gt;Greetings!&lt;/p&gt;<br />
&lt;div lang=&#8221;en-au&#8221;&gt;G&#8217;day!&lt;/div&gt;<br />
&lt;p lang=&#8221;fr&#8221;&gt;Bonjour!&lt;/p&gt;<br />
</strong><strong>&lt;h4 lang=&#8221;cy-en&#8221;&gt;Jrooana!&lt;/h4&gt;<br />
</strong></span>In general, the form <span style="color:#3366ff;"><strong>[att|="val"]</strong></span> can be used for any attribute and its values. Say you have a series of figures in an HTML document, each of which has a filename like figure-1.gif and figure-3.jpg. You can match all of these images using the following selector:<br />
<span style="color:#3366ff;"><strong>img[src|="figure"] {border: 1px solid gray;}</strong></span></li>
</ul>
<p>=================================================================================================</p>
<h3><span style="color:#ff6600;">6. Descendant selector (contextual selector)</span></h3>
<p>Style only those em elements that are descended from h1 element</p>
<p><span style="color:#3366ff;"><strong> h1 em {color: gray;}<br />
td.sidebar {background: blue;}<br />
td.main {background: white;}<br />
td.sidebar a:link {color: white;}<br />
td.main a:link {color: blue;}<br />
blockquote b, p b {color: gray;}</strong></span></p>
<p><strong>The child combinator (&gt;):</strong><br />
<span style="color:#3366ff;"><strong>h1 &gt; strong {color: red;}</strong></span></p>
<p><span style="color:#ff0000;"><strong>Note</strong></span> the difference between descendant and child.</p>
<p><strong>Adjacent-sibling combinator (+)</strong> &#8211; selects an element that immediately follows another element with the same parent.<br />
To remove the top margin from a paragraph immediately following an H1 element, write:<br />
<span style="color:#3366ff;"><strong>h1 + p {margin-top: 0;}<br />
</strong></span>In addition, text content between two elements does not prevent the adjacent-sibling combinator from working.<br />
Example: <span style="color:#3366ff;"><strong>html &gt; body table + ul{margin-top: 1.5em;}</strong></span><br />
The selector translates as &#8220;selects any <tt>ul</tt> element that immediately  follows a sibling <tt>table</tt> element that is descended from a <tt>body</tt> element that is itself a child of an <tt>html</tt> element.&#8221;</p>
<p>===============================================================================================</p>
<h3><span style="color:#ff6600;">7. Pseudo-Class Selectors</span></h3>
<p><span style="color:#3366ff;"><strong>a:visited {color: red;}</strong></span></p>
<p><strong>:link</strong><br />
Refers to any anchor that is a hyperlink (i.e., has an href attribute) and points to an address that has not been visited.</p>
<p><strong>:visited</strong><br />
Refers to any anchor that is a hyperlink to an already visited address.</p>
<p>The :link and :visited pseudo-class selectors are functionally equivalent to the body attributes link and vlink.<br />
&lt;body link=&#8221;purple&#8221; vlink=&#8221;silver&#8221;&gt;</p>
<p><span style="color:#3366ff;"><strong>a#footer-copyright:link{font-weight: bold;}<br />
a#footer-copyright:visited {font-weight: normal;}</strong></span></p>
<p><span style="color:#3366ff;"><strong></strong></span></p>
<p><strong>Dynamic pseudo-classes<br />
:focus</strong><br />
Refers to any element that currently has the input focus i.e., can accept keyboard input or be activated in some way.</p>
<p><strong>:hover</strong><br />
Refers to any element over which the mouse pointer is placede.g., a hyperlink over which the mouse pointer is hovering.</p>
<p><strong>:active</strong><br />
Refers to any element that has been activated by user inpute.g., a hyperlink on which a user clicks during the time the mouse button is held down.</p>
<p><span style="color:#3366ff;"><strong>a:link {color: navy;}<br />
a:visited {color: gray;}<br />
a:hover {color: red;}<br />
a:active {color: yellow;}</strong></span><br />
<span style="color:#ff0000;"><strong> Note</strong></span> that the dynamic pseudo-classes can be applied to any element, which is good since it&#8217;s often useful to apply dynamic styles to elements that aren&#8217;t links.</p>
<p>The order of the pseudo-classes is more important than it might seem at first. Recommendation is  &#8220;<strong>link-visited-focus-hover-active</strong>.&#8221;</p>
<p><strong>:first-child</strong> &#8211; used to select elements that are the first children of other elements.<br />
Consider the following markup:</p>
<p><span style="color:#3366ff;"><em>&lt;div&gt;<br />
&lt;p&gt;These are the necessary steps:&lt;/p&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;Insert key&lt;/li&gt;<br />
&lt;li&gt;Turn key &lt;strong&gt;clockwise&lt;/strong&gt;&lt;/li&gt;<br />
&lt;li&gt;Push accelerator&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;p&gt;<br />
Do &lt;em&gt;not&lt;/em&gt; push the brake at the same time as the accelerator.<br />
&lt;/p&gt;<br />
&lt;/div&gt;</em></span></p>
<p>In this example, the elements that are first children are the first p, the first li, and the strong and em elements. Given the following two rules:<br />
<strong><span style="color:#3366ff;">p:first-child {font-weight: bold;}</span> </strong>- bolds the p that is a first-child; so &#8220;These are the necessary steps&#8221; will be bolded.<br />
<span style="color:#3366ff;"><strong> li:first-child {text-transform: uppercase;}</strong></span> &#8211; Set the &lt;li&gt; that is a first-child to upper case; so &#8220;Insert key&#8221; becomes &#8220;INSERT KEY&#8221;</p>
<p>For situations where you want to select an element based on its language, you can use the <strong>:lang( ) pseudo-class</strong>. In terms of its matching patterns, the :lang( ) pseudo-class is exactly like the |= attribute selector. For example, to italicize any element in French, you would write:<br />
<span style="color:#3366ff;"><strong>*:lang(fr) {font-style: italic;}<br />
</strong></span>The primary difference between the pseudo-selector and the attribute selector is that the language information can be derived from a number of sources, some of which are outside the element itself.</p>
<p>Combine Pseudo-classes<br />
<span style="color:#3366ff;"><strong> a:link:hover {color: red;}<br />
a:visited:hover {color: maroon;}</strong></span></p>
<h3><span style="color:#ff6600;">8. Pseudo-Element Selectors:</span></h3>
<p><span style="color:#3366ff;"><strong> p:first-line {color: purple;}</strong></span><br />
<span style="color:#3366ff;"><strong>p:first-letter {color: red;}</strong></span></p>
<p><span style="color:#ff0000;">In addition, all pseudo-elements must be placed at the very end of the selector in which they appear.</span> Therefore, it would not be legal to write p:first-line em since the pseudo-element comes before the subject of the selector (the subject is the last element listed).</p>
<p><span style="color:#3366ff;"><strong>h2:before {content: &#8220;]]&#8221;; color: silver;} </strong><span style="color:#000000;">- preface every &lt;h2&gt; with &#8220;]]&#8221;</span><strong><br />
body:after {content: &#8221;  The End.&#8221;;} </strong><span style="color:#000000;">- end your document with &#8220;The End&#8221;</span><strong><br />
</strong></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/57/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/57/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=57&subd=wikiaspnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/05/26/css-selectors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS comments</title>
		<link>http://wikiaspnet.wordpress.com/2008/05/20/css-comments/</link>
		<comments>http://wikiaspnet.wordpress.com/2008/05/20/css-comments/#comments</comments>
		<pubDate>Wed, 21 May 2008 01:12:59 +0000</pubDate>
		<dc:creator>Slayter</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://wikiaspnet.wordpress.com/?p=55</guid>
		<description><![CDATA[CSS comments:

/*   */
 cannot be nested

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=55&subd=wikiaspnet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>CSS comments:</strong></p>
<ul>
<li><span style="color:#ff0000;"><strong>/*   */</strong></span></li>
<li> cannot be nested</li>
</ul>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/wikiaspnet.wordpress.com/55/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/wikiaspnet.wordpress.com/55/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wikiaspnet.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wikiaspnet.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wikiaspnet.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wikiaspnet.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wikiaspnet.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wikiaspnet.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wikiaspnet.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wikiaspnet.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wikiaspnet.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wikiaspnet.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wikiaspnet.wordpress.com&blog=3120846&post=55&subd=wikiaspnet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://wikiaspnet.wordpress.com/2008/05/20/css-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/392dac9bbc3c8fea87e0533a51b59b37?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Slayter</media:title>
		</media:content>
	</item>
	</channel>
</rss>