<?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>Terry Dunham is a graphic designer, web designer and illustrator for hire &#187; CSS Tricks</title>
	<atom:link href="http://terrytoledo.com/category/css-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://terrytoledo.com</link>
	<description>Free Estimates for Graphic Design, Web Design, Illustration and Designing a Marketing Plan</description>
	<lastBuildDate>Tue, 07 Feb 2012 05:00:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Speech Bubble Arrows that Inherit Parent Color</title>
		<link>http://terrytoledo.com/2012/02/speech-bubble-arrows-that-inherit-parent-color/</link>
		<comments>http://terrytoledo.com/2012/02/speech-bubble-arrows-that-inherit-parent-color/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 05:00:11 +0000</pubDate>
		<dc:creator>csstricks</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>

		<guid isPermaLink="false">http://terrytoledo.com/2012/02/speech-bubble-arrows-that-inherit-parent-color/</guid>
		<description><![CDATA[Interesting question: css3 speech bubble question: for the &#8220;triangle&#8221;&#8216;s border color, how can I set it to whatever its parent div&#8217;s bgcolor is automagically? &#8212; Jin Yang (@jzy) February 1, 2012 By &#8220;css3 speech bubble&#8221;, Jin means using a pseudo element on a container to add a little pointer arrow (triangle). Not really CSS3, but [...]]]></description>
			<content:encoded><![CDATA[<p>Interesting question:</p>
<blockquote><p>css3 speech bubble question: for the &#8220;triangle&#8221;&#8216;s border color, how can I set it to whatever its parent div&#8217;s bgcolor is automagically?</p>
<p>&mdash; Jin Yang (@jzy) <a href="https://twitter.com/jzy/status/164834827814703104">February 1, 2012</a></p>
</blockquote>
<p><span></span>
</p>
<p>By &#8220;css3 speech bubble&#8221;, Jin means using a pseudo element on a container to add a little pointer arrow (<a href="http://css-tricks.com/snippets/css/css-triangle/">triangle</a>). Not really CSS3, but that&#8217;s pedantic.</p>
<p><img src="http://css-tricks.com/wp-content/uploads/2012/02/speechbubble.png" alt="" width="305" height="155" class="alignnone size-full wp-image-16232" /></p>
<p>Let&#8217;s say that pink color isn&#8217;t practical to set in an external CSS file. Perhaps is a user setting, or perhaps its set dynamically somehow. </p>
<pre><code>&lt;div class="speech-bubble" style="background: pink;"&gt;
   I like bananas, because they have no bones.
&lt;/div&gt;</code></pre>
<p>Setting the container with an inline style is all well and good, but unfortunately there is no inline style for pseudo elements. So we might end up with something like this:</p>
<p><img src="http://css-tricks.com/wp-content/uploads/2012/02/blacktriangle.png" alt="" width="301" height="157" class="alignnone size-full wp-image-16233" /></p>
<p>Bummer. </p>
<p>There is a solution though! While we are setting the inline style for the container, we can set an inline style for <code>border-color</code> too. Even though the container actually has no border, we can rely on inheritance to pass that color down to the pseudo element, which is treated like a child element. </p>
<pre><code>&lt;div class="speech-bubble" style="border-color: pink; background: pink;"&gt;
   I like bananas, because they have no bones.
&lt;/div&gt;</code></pre>
<p>Then in our code for the pseudo element, we&#8217;ll specifically have it inherit the color:</p>
<pre><code>.speech-bubble:after {
   content: "";
   position: absolute;
   top: 100%;
   left: 20px;
   border-top: 20px solid black;
   border-top-color: inherit;
   border-left: 20px solid transparent;
   border-right: 20px solid transparent;
}</code></pre>
<p>Notice that I&#8217;ve applied <code>inherit</code> to <code>border-top-color</code> rather than the shorthand property <code>border-top</code>. For some reason (feel free to enlighten me) <code>inherit</code> doesn&#8217;t work in the shorthand. Also note that when you override the the color with <code>inherit</code>, it doesn&#8217;t &#8220;inherit&#8221; from the color set just above it (black), it inherits from its parent. So if you need a default, you&#8217;ll need to set the <code>border-color</code> on the parent.</p>
<p><a href="http://jsfiddle.net/chriscoyier/taaGc/1/">View Demo</a></p>
<p><a href="http://css-tricks.com/speech-bubble-arrows-that-inherit-parent-color/">Speech Bubble Arrows that Inherit Parent Color</a> is a post from <a href="http://css-tricks.com">CSS-Tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://terrytoledo.com/2012/02/speech-bubble-arrows-that-inherit-parent-color/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Digging Into WordPress 3.3</title>
		<link>http://terrytoledo.com/2012/02/digging-into-wordpress-3-3/</link>
		<comments>http://terrytoledo.com/2012/02/digging-into-wordpress-3-3/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 05:00:12 +0000</pubDate>
		<dc:creator>csstricks</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>

		<guid isPermaLink="false">http://terrytoledo.com/2012/02/digging-into-wordpress-3-3/</guid>
		<description><![CDATA[Digging Into WordPress (the book) is now updated to v3.3. Includes new chapters specially on what&#8217;s new in 3.2 and 3.3, all the rest of the chapters tightened up and refreshed, better internal hyperlinking (in the PDF), and more. It&#8217;s a free update (PDF) to all previous buyers. New print copies are on order and [...]]]></description>
			<content:encoded><![CDATA[<p>Digging Into WordPress (the book) is now updated to v3.3. Includes new chapters specially on what&#8217;s new in 3.2 and 3.3, all the rest of the chapters tightened up and refreshed, better internal hyperlinking (in the PDF), and more. It&#8217;s a free update (PDF) to all previous buyers. New print copies are on order and will be available soon. </p>
<p><a href="http://digwp.com/2012/02/digging-into-wordpress-v3-3/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a href="http://css-tricks.com/digging-into-wordpress-3-3/">Permalink</a></p>
<p><a href="http://css-tricks.com/digging-into-wordpress-3-3/">Digging Into WordPress 3.3</a> is a post from <a href="http://css-tricks.com">CSS-Tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://terrytoledo.com/2012/02/digging-into-wordpress-3-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A proposal to drop browser vendor prefixes</title>
		<link>http://terrytoledo.com/2012/02/a-proposal-to-drop-browser-vendor-prefixes/</link>
		<comments>http://terrytoledo.com/2012/02/a-proposal-to-drop-browser-vendor-prefixes/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 05:00:12 +0000</pubDate>
		<dc:creator>csstricks</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>

		<guid isPermaLink="false">http://terrytoledo.com/2012/02/a-proposal-to-drop-browser-vendor-prefixes/</guid>
		<description><![CDATA[Interesting idea by Felipe G on using a new at-rule, @-vendor-unlock, to tell the browser to use it&#8217;s experimental implementation of any particular property, rather than using a vendor prefix on that property. Unfortunately at this point, even if you could get all the browsers on board, you&#8217;d need to use this and vendor prefixes [...]]]></description>
			<content:encoded><![CDATA[<p>Interesting idea by Felipe G on using a new at-rule, <code>@-vendor-unlock</code>, to tell the browser to use it&#8217;s experimental implementation of any particular property, rather than using a vendor prefix on that property. Unfortunately at this point, even if you could get all the browsers on board, you&#8217;d need to use this <em>and</em> vendor prefixes to get deep support, which makes the problem worse. What we really need is for all browsers to implement auto-updating so eventually &#8220;supporting older browsers&#8221; is something we can look back and laugh at.</p>
<p><a href="http://felipe.wordpress.com/2012/02/02/a-proposal-to-drop-browser-vendor-prefixes/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a href="http://css-tricks.com/a-proposal-to-drop-browser-vendor-prefixes/">Permalink</a></p>
<p><a href="http://css-tricks.com/a-proposal-to-drop-browser-vendor-prefixes/">A proposal to drop browser vendor prefixes</a> is a post from <a href="http://css-tricks.com">CSS-Tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://terrytoledo.com/2012/02/a-proposal-to-drop-browser-vendor-prefixes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Poll: In The Next 10 Years, Will We See CSS Competitor?</title>
		<link>http://terrytoledo.com/2012/02/new-poll-in-the-next-10-years-will-we-see-css-competitor/</link>
		<comments>http://terrytoledo.com/2012/02/new-poll-in-the-next-10-years-will-we-see-css-competitor/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 05:00:11 +0000</pubDate>
		<dc:creator>csstricks</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>

		<guid isPermaLink="false">http://terrytoledo.com/2012/02/new-poll-in-the-next-10-years-will-we-see-css-competitor/</guid>
		<description><![CDATA[What do you think folks? Is a new language going to come along in the next ten years that deals with layout / style / design and unseat CSS? Or at least give it a run for its money? You should vote not based on if there will be any attempt at it, which there [...]]]></description>
			<content:encoded><![CDATA[<p>What do you think folks? Is a new language going to come along in the next ten years that deals with layout / style / design and unseat CSS? Or at least give it a run for its money?</p>
<p>You should vote not based on if there will be any attempt at it, which there certainly will be and already has. But instead if you think one of those attempts will actually make it into native support by a browser with significant market share and see a significant number of web workers building web sites in it.</p>
<p>Poll is in the sidebar (or, down pretty far if on a small screen).</p>
<p><a href="http://css-tricks.com/new-poll-in-the-next-10-years-will-we-see-css-competitor/">New Poll: In The Next 10 Years, Will We See CSS Competitor?</a> is a post from <a href="http://css-tricks.com">CSS-Tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://terrytoledo.com/2012/02/new-poll-in-the-next-10-years-will-we-see-css-competitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ShopTalk Episode 4</title>
		<link>http://terrytoledo.com/2012/02/shoptalk-episode-4/</link>
		<comments>http://terrytoledo.com/2012/02/shoptalk-episode-4/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 01:50:39 +0000</pubDate>
		<dc:creator>csstricks</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>

		<guid isPermaLink="false">http://terrytoledo.com/2012/02/shoptalk-episode-4/</guid>
		<description><![CDATA[Dave, Jonathan Longnecker, Nate Croft and I talk shop. Topics include website building apps, where to start designing, when not to design for modern browsers, and more. Sponsored by LessAccounting. Direct Link to Article &#8212; Permalink ShopTalk Episode 4 is a post from CSS-Tricks]]></description>
			<content:encoded><![CDATA[<p>Dave, Jonathan Longnecker, Nate Croft and I talk shop. Topics include website building apps, where to start designing, when not to design for modern browsers, and more. </p>
<p>Sponsored by <a href="http://lessaccounting.com/">LessAccounting</a>. </p>
<p><a href="http://shoptalkshow.com/episodes/004-with-longnecker-and-croft/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a href="http://css-tricks.com/shoptalk-episode-4/">Permalink</a></p>
<p><a href="http://css-tricks.com/shoptalk-episode-4/">ShopTalk Episode 4</a> is a post from <a href="http://css-tricks.com">CSS-Tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://terrytoledo.com/2012/02/shoptalk-episode-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better Box Sizing</title>
		<link>http://terrytoledo.com/2012/02/better-box-sizing/</link>
		<comments>http://terrytoledo.com/2012/02/better-box-sizing/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 05:00:10 +0000</pubDate>
		<dc:creator>csstricks</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>

		<guid isPermaLink="false">http://terrytoledo.com/2012/02/better-box-sizing/</guid>
		<description><![CDATA[Paul Irish suggests universal selector to apply border-box box-sizing to every element. I&#8217;ve been wanting to try this forever as this box model is, in my opinion, just better. Imagine elements with percentage widths and pixel padding that doesn&#8217;t result in disaster. Direct Link to Article &#8212; Permalink Better Box Sizing is a post from [...]]]></description>
			<content:encoded><![CDATA[<p>Paul Irish suggests universal selector to apply <code>border-box</code> <code>box-sizing</code> to every element. I&#8217;ve been wanting to try this forever as this box model is, in my opinion, just better. Imagine elements with percentage widths and pixel padding that doesn&#8217;t result in disaster.</p>
<p><a href="http://paulirish.com/2012/box-sizing-border-box-ftw/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a href="http://css-tricks.com/better-box-sizing/">Permalink</a></p>
<p><a href="http://css-tricks.com/better-box-sizing/">Better Box Sizing</a> is a post from <a href="http://css-tricks.com">CSS-Tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://terrytoledo.com/2012/02/better-box-sizing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Real-World CSS</title>
		<link>http://terrytoledo.com/2012/02/real-world-css/</link>
		<comments>http://terrytoledo.com/2012/02/real-world-css/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 05:00:10 +0000</pubDate>
		<dc:creator>csstricks</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>

		<guid isPermaLink="false">http://terrytoledo.com/2012/02/real-world-css/</guid>
		<description><![CDATA[A very serious not at all tongue-in-cheek gallery of CSS3 techniques that poo-poos the fancy in favor of the practical. Direct Link to Article &#8212; Permalink Real-World CSS is a post from CSS-Tricks]]></description>
			<content:encoded><![CDATA[<p>A very serious not at all tongue-in-cheek gallery of CSS3 techniques that poo-poos the fancy in favor of the practical.</p>
<p><a href="http://visualidiot.com/articles/css3" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a href="http://css-tricks.com/real-world-css/">Permalink</a></p>
<p><a href="http://css-tricks.com/real-world-css/">Real-World CSS</a> is a post from <a href="http://css-tricks.com">CSS-Tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://terrytoledo.com/2012/02/real-world-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 10</title>
		<link>http://terrytoledo.com/2012/02/firefox-10/</link>
		<comments>http://terrytoledo.com/2012/02/firefox-10/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 05:00:09 +0000</pubDate>
		<dc:creator>csstricks</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>

		<guid isPermaLink="false">http://terrytoledo.com/2012/02/firefox-10/</guid>
		<description><![CDATA[&#8230;is now a stable release. It&#8217;s notable because it&#8217;s the first release with it&#8217;s own built in developer tools (video overview). It&#8217;s all HTML/CSS for now (not a Firebug replacement) but they are nicely designed and a great first step for a product that really should be in-house. Also, CSS 3D transforms! After you&#8217;ve upgraded, [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;is now a stable release. It&#8217;s notable because it&#8217;s the first release with it&#8217;s own built in developer tools (<a href="http://www.youtube.com/watch?v=VcuQ2Bn5bTA&amp;feature=youtu.be">video overview</a>). It&#8217;s all HTML/CSS for now (not a Firebug replacement) but they are nicely designed and a great first step for a product that really should be in-house. Also, CSS 3D transforms! After you&#8217;ve upgraded, <a href="http://monocle.inventivelabs.com.au/static/scripts/src/test/experimental/moz-element-flipper/index.html">check out this demo</a> using <code>-moz-element</code> and the just-now-supported 3D transforms.</p>
<p><a href="http://www.mozilla.org/en-US/firefox/10.0/releasenotes/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a href="http://css-tricks.com/firefox-10/">Permalink</a></p>
<p><a href="http://css-tricks.com/firefox-10/">Firefox 10</a> is a post from <a href="http://css-tricks.com">CSS-Tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://terrytoledo.com/2012/02/firefox-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poll Results: Internet Connection Speed</title>
		<link>http://terrytoledo.com/2012/02/poll-results-internet-connection-speed/</link>
		<comments>http://terrytoledo.com/2012/02/poll-results-internet-connection-speed/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 05:00:08 +0000</pubDate>
		<dc:creator>csstricks</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>

		<guid isPermaLink="false">http://terrytoledo.com/2012/02/poll-results-internet-connection-speed/</guid>
		<description><![CDATA[In this latest poll, I asked people to test their own internet connection speed then vote in the poll based on their result. The speed choices ranged from (what I would consider) blazingly fast, to mediocre, to nearly unusably slow. I would have guessed a bell curve, with most people having mediocre speeds and just [...]]]></description>
			<content:encoded><![CDATA[<p>In this <a href="http://css-tricks.com/new-poll-your-internet-connection-speed/">latest poll</a>, I asked people to test their own internet connection speed then vote in the poll based on their result. The speed choices ranged from (what I would consider) blazingly fast, to mediocre, to nearly unusably slow. I would have guessed a bell curve, with most people having mediocre speeds and just a few on the edges of extreme fast/slow. We didn&#8217;t get that at all. </p>
<p><span></span></p>
<p>The results show a pretty even distribution across all the choices.</p>
<p><img src="http://css-tricks.com/wp-content/uploads/2012/01/pollresults-speed1.png" alt="" width="800" height="800" class="alignnone size-full wp-image-16181" /></p>
<p>Interesting, no? If we take anything from this, it should be that we can&#8217;t assume anything about what peoples internet connection speed is. There is a pretty darn sizeable group of folks with very slow internet. Optimizing our sites to load fast makes a very big difference to those folks. Whether they actively think about it or not, they&#8217;ll be much more likely to visit and stay on your fast loading site than a competitor&#8217;s slower loading one.</p>
<p>New poll soon.</p>
<p><a href="http://css-tricks.com/poll-results-internet-connection-speed/">Poll Results: Internet Connection Speed</a> is a post from <a href="http://css-tricks.com">CSS-Tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://terrytoledo.com/2012/02/poll-results-internet-connection-speed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Star Ratings With Very Little CSS</title>
		<link>http://terrytoledo.com/2012/02/star-ratings-with-very-little-css/</link>
		<comments>http://terrytoledo.com/2012/02/star-ratings-with-very-little-css/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 04:19:15 +0000</pubDate>
		<dc:creator>csstricks</dc:creator>
				<category><![CDATA[CSS Tricks]]></category>

		<guid isPermaLink="false">http://terrytoledo.com/2012/02/star-ratings-with-very-little-css/</guid>
		<description><![CDATA[Star ratings are one of those classic UX patterns that everyone has tinkered with at one time or another. I had an idea get the UX part of it done with very little code and no JavaScript. The markup uses the unicode entity for a star (?) right in it. If you have a UTF-8 [...]]]></description>
			<content:encoded><![CDATA[<p>Star ratings are one of those classic UX patterns that everyone has tinkered with at one time or another. I had an idea get the UX part of it done with very little code and no JavaScript.<span></span></p>
<p><img src="http://css-tricks.com/wp-content/uploads/2012/02/starratings.png" alt="" width="240" height="153" class="alignnone size-full wp-image-16198" /></p>
<p>The markup uses the unicode entity for a star (?) right in it. If you have a UTF-8 charset that should be no big deal. Alternatively you could use &#9734; (<a href="http://www.evotech.net/blog/2007/08/css-javascript-character-entities/">Calculator</a> for that kind of thing). You could use as many stars as you like:</p>
<pre><code>&lt;div class="rating"&gt;
&lt;span&gt;?&lt;/span&gt;&lt;span&gt;?&lt;/span&gt;&lt;span&gt;?&lt;/span&gt;&lt;span&gt;?&lt;/span&gt;&lt;span&gt;?&lt;/span&gt;
&lt;/div&gt;</code></pre>
<p>Now we need to flop out that &#8220;hollow&#8221; star with a &#8220;solid&#8221; star on hover (<a href="http://copypastecharacter.com/">Gallery</a> for finding those sorts of characters). Easy, just drop a pseudo element of a solid star (?) over it on <code>:hover</code></p>
<pre><code>.rating &gt; span:hover:before {
   content: "\2605";
   position: absolute;
}</code></pre>
<p>Just by virtue of being it being absolutely positioned, the <code>top: 0; left: 0;</code> are implied (in modern browsers, anyway). So the solid star just sits directly on top of the hollow star. You could even change the color or size if you wished.</p>
<p>But what we have so far only works on individual stars. The UX pattern demands that all the stars be filled in. Fo instance, if we hover over the 4th star, the 4th star becomes solid, but also the 1st, 2nd, and 3rd. </p>
<p>Through CSS, there is no way to select a <em>preceding</em> child element. However, there is a way to select <em>succeeding</em> child elements, through the <a href="http://css-tricks.com/child-and-sibling-selectors/">adjacent or general sibling combinators</a>. If we literally <a href="http://css-tricks.com/snippets/css/reversing-text/">reverse the order of the characters</a>, then we can make use of the general sibling combinator to select all the stars that appear <em>before</em> the hovered star visually, but <em>after</em> the hovered star in the HTML. </p>
<pre><code>.rating {
  unicode-bidi: bidi-override;
  direction: rtl;
}
.rating &gt; span:hover:before,
.rating &gt; span:hover ~ span:before {
   content: "\2605";
   position: absolute;
}</code></pre>
<p>That&#8217;s it! The whole star ratings UX pattern with very little code. Here&#8217;s the entire bit of CSS to make it work:</p>
<pre><code>.rating {
  unicode-bidi: bidi-override;
  direction: rtl;
}
.rating &gt; span {
  display: inline-block;
  position: relative;
  width: 1.1em;
}
.rating &gt; span:hover:before,
.rating &gt; span:hover ~ span:before {
   content: "\2605";
   position: absolute;
}</code></pre>
<p><a href="http://css-tricks.com/examples/StarRating/">View Demo</a></p>
<p>And <a href="http://dabblet.com/gist/1709019">here&#8217;s a Dabblet</a> if you wanna mess with it.</p>
<h3>Actual Usage</h3>
<p>Chances are, JavaScript is going to be involved with rating stars anyway. When a user clicks a star, the rating is reported back via Ajax, and the widget itself gains a class to permanently display their selected number of stars. With JavaScript already involved, wouldn&#8217;t it be OK to lean on it for flip-flopping classes around on the stars to make them work? If your app is absolutely dependent on JavaScript to work, then sure, that&#8217;s fine. If you are interested in building a website that still works without JavaScript, then these Star Ratings are going to need more work. You should look into <a href="http://lea.verou.me/2011/08/accessible-star-rating-widget-with-pure-css/">Lea Verou&#8217;s example</a> which uses radio buttons, which could be a part of a form that can be submitted to &#8220;rate&#8221; whatever it is without JavaScript.</p>
<h3>Others</h3>
<p>After first sharing this on Twitter, a couple of other folks took a crack at it in slightly different ways. <a href="https://twitter.com/dmfilipenko/status/164800384953614336">@dmfilipenko</a>&#8216;s <a href="http://dabblet.com/gist/1718992">Dabblet</a>. <a href="https://twitter.com/mprogano/status/164418496313303040">@mprogano&#8217;s</a> <a href="http://dabblet.com/gist/1712123">Dabblet</a></p>
<p><a href="http://css-tricks.com/star-ratings/">Star Ratings With Very Little CSS</a> is a post from <a href="http://css-tricks.com">CSS-Tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://terrytoledo.com/2012/02/star-ratings-with-very-little-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

