<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0"><channel><title>CSS-Tricks</title> <link>http://css-tricks.com</link> <description>Tips, Tricks, and Techniques on using Cascading Style Sheets.</description> <lastBuildDate>Wed, 08 Sep 2010 20:57:43 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CssTricks" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="csstricks" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">CssTricks</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item><title>Missing Documentation for matrix3d Transforms</title><link>http://9elements.com/html5demos/matrix3d/</link> <comments>http://css-tricks.com/missing-documentation-for-matrix3d-transforms/#comments</comments> <pubDate>Wed, 08 Sep 2010 20:57:43 +0000</pubDate> <dc:creator>Chris Coyier</dc:creator> <category><![CDATA[Link]]></category><guid isPermaLink="false">http://css-tricks.com/?p=7378</guid> <description><![CDATA[<p>Documentation from Sebastian Deutsch on using -webkit-transform with matrix3d, which is rather complicated but can do cool stuff. Also, he used <a
href="http://jashkenas.github.com/coffee-script/">CoffeeScript</a> for the demo (first I&#8217;m hearing of it) which looks kinda like SASS for JavaScript.</p><p><a
href="http://9elements.com/html5demos/matrix3d/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a
href="http://css-tricks.com/missing-documentation-for-matrix3d-transforms/">Permalink</a></p>]]></description> <content:encoded><![CDATA[<p>Documentation from Sebastian Deutsch on using <code>-webkit-transform</code> with <code>matrix3d</code>, which is rather complicated but can do cool stuff. Also, he used <a
href="http://jashkenas.github.com/coffee-script/">CoffeeScript</a> for the demo (first I&#8217;m hearing of it) which looks kinda like SASS for JavaScript.</p><p><a
href="http://9elements.com/html5demos/matrix3d/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a
href="http://css-tricks.com/missing-documentation-for-matrix3d-transforms/">Permalink</a></p>]]></content:encoded> <wfw:commentRss>http://css-tricks.com/missing-documentation-for-matrix3d-transforms/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Ordering CSS3 Properties</title><link>http://css-tricks.com/ordering-css3-properties/</link> <comments>http://css-tricks.com/ordering-css3-properties/#comments</comments> <pubDate>Tue, 07 Sep 2010 20:49:40 +0000</pubDate> <dc:creator>Chris Coyier</dc:creator> <category><![CDATA[Article]]></category><guid isPermaLink="false">http://css-tricks.com/?p=7361</guid> <description><![CDATA[<p>When writing CSS3 properties, the modern wisdom is to list the &#8220;real&#8221; property last and the vendor prefixes first:</p><p><span
id="more-7361"></span></p> .not-a-square {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}<p>Why is this method of ordering properties <a
href="http://www.456bereastreet.com/archive/201009/remember_non-vendor-prefixed_css_3_properties_and_put_them_last/">so commonly taught</a>? Here is what it would look like &#8220;the wrong way&#8221;:</p> .not-a-square {
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}<p>Even doing it &#8220;the wrong way&#8221;, won&#8217;t the border radius be the same no matter what, forever? A quick investigation might&#8230;</p>]]></description> <content:encoded><![CDATA[<p>When writing CSS3 properties, the modern wisdom is to list the &#8220;real&#8221; property last and the vendor prefixes first:</p><p><span
id="more-7361"></span></p><pre><code class="css">.not-a-square {
   -webkit-border-radius: 10px;
   -moz-border-radius: 10px;
   border-radius: 10px;
}</code></pre><p>Why is this method of ordering properties <a
href="http://www.456bereastreet.com/archive/201009/remember_non-vendor-prefixed_css_3_properties_and_put_them_last/">so commonly taught</a>? Here is what it would look like &#8220;the wrong way&#8221;:</p><pre><code class="css">.not-a-square {
   border-radius: 10px;
   -moz-border-radius: 10px;
   -webkit-border-radius: 10px;
}</code></pre><p>Even doing it &#8220;the wrong way&#8221;, won&#8217;t the border radius be the same no matter what, forever? A quick investigation might lead you to conclude that it will, and this ordering of properties is rather nonsense.</p><ol><li><strong>The Long Long Ago:</strong> None of the properties are supported, order doesn&#8217;t matter.</li><li><strong>The Past:</strong> Only vendor prefixes are supported, order doesn&#8217;t matter.</li><li><strong>The Now:</strong> Both vendor prefixes and actual property are supported. If prefix is last, it will override actual property, but both are the same anyway.</li><li><strong>The Future:</strong> Only actual property is supported, order doesn&#8217;t matter.</li></ol><p><a
href="http://cdn.css-tricks.com/wp-content/uploads/2010/09/fundamentallyflawed.png">Here&#8217;s a simple chart</a> with this concept at work.</p><h3>Woah there, Cowboy</h3><p>The fact is, the ordering of CSS3 properties is important, and the above is fundamentally flawed. &#8220;The Now&#8221; is exactly the problem. We are at a crucial juncture in browser history where some browsers are supporting both the vendor prefixed version and the actual CSS3 property. Right now it&#8217;s specifically WebKit that is doing this, and the way they have implemented it is that if you list the vendor prefix after the actual property, the vendor prefix will override and be the property that renders.</p><p>Why does that matter? In the simple border-radius example we saw above, either way, the corners on that element will have a border-radius of 10px. There is no difference in how the vendor prefix and &#8220;real&#8221; property handle rounded corners <em>when you set only one value</em>. <strong>The problem is that there <em>is</em> a difference between the implementations of the properties when passing more than one value.</strong></p><pre><code class="css">.not-a-square {
   /* These do totally different things */
   border-radius: 30px 10px;
   -webkit-border-radius: 30px 10px;
}</code></pre><p>The spec or &#8220;real&#8221; version will render the top left and bottom right corners at 30px and the top right and bottom left corners at 10px. The vendor prefix will render all four corners with elliptical corners 30px wide and 10px tall.</p><p>So if you&#8217;ve been blinding including the real <code>border-radius</code> at the end of your property lists using identical values, and then switch from Safari 4 to Safari 5, you&#8217;d see a dramatic change in how the above code was styling your boxes.</p><div
class="image-wrap"> <img
src="http://cdn.css-tricks.com/wp-content/uploads/2010/09/cornerswrong.png" alt="" title="cornerswrong" width="377" height="189" class="alignnone size-full wp-image-7369" /></p><p><a
href="http://jsbin.com/efewi4/edit">See here</a></p></div><p>You could fix this up by fiddling with the values to make sure they do the same thing&#8230; but if you are going to fiddle with anything, you might as well fiddle with the real property as that will be supported version in the future. Listing the real property last is definitely the way to go. Because it will be based entirely on the spec, it will match other browsers implementations, and will be the only supported version as time goes on and vendor prefixes are removed.</p><p>Border radius isn&#8217;t the only example here. Note the <a
href="http://css3please.com/">dramaticly different syntaxes</a> for <code>background-image</code> gradients. Now there is no &#8220;real&#8221; spec version of these values yet, but when there is, the implementation will be different than what we are using now. That should be listed last in the ordering of the properties to future proof that as well.</p><p>Thanks to <a
href="http://twitter.com/mattwiebe/status/22900485217">@mattwiebe</a> and <a
h ref="http://twitter.com/snookca/status/22898996047">@snookca</a> for helping me understand this better.</p> ]]></content:encoded> <wfw:commentRss>http://css-tricks.com/ordering-css3-properties/feed/</wfw:commentRss> <slash:comments>31</slash:comments> </item> <item><title>How Long Should We Ban IPs?</title><link>http://css-tricks.com/how-long-should-we-ban-ips/</link> <comments>http://css-tricks.com/how-long-should-we-ban-ips/#comments</comments> <pubDate>Fri, 03 Sep 2010 14:36:51 +0000</pubDate> <dc:creator>Chris Coyier</dc:creator> <category><![CDATA[Article]]></category><guid isPermaLink="false">http://css-tricks.com/?p=7309</guid> <description><![CDATA[<p>There are all kinds of reasons IPs get banned. A forums manager might ban an IP because the user at it is spamming. An admin of an email server might also ban IPs for spamming. A web service might ban an IP for using an API in an unapproved way.</p><p>On this site, we used to ban IP&#8217;s in the forums all the time (<a
href="http://css-tricks.com/forums/">the new forum</a>s have been much better in spam prevention). I also sometimes ban&#8230;</p>]]></description> <content:encoded><![CDATA[<p>There are all kinds of reasons IPs get banned. A forums manager might ban an IP because the user at it is spamming. An admin of an email server might also ban IPs for spamming. A web service might ban an IP for using an API in an unapproved way.</p><p>On this site, we used to ban IP&#8217;s in the forums all the time (<a
href="http://css-tricks.com/forums/">the new forum</a>s have been much better in spam prevention). I also sometimes ban IPs from inside WordPress. There is a setting to &#8220;blacklist&#8221; IP&#8217;s in the admin area on the Settings > Discussion page. There are few in there from spammers, and a variety of people I thought just shouldn&#8217;t come &#8217;round here no more. In looking at this list now, some of these IP&#8217;s have been in here for years. Is that acceptable?</p><p>At the time of blockage, and IP address might belong to Danny Doucher, but after sometime, the IP address might be reassigned and now belong to Susie Supercool. I certainly wouldn&#8217;t want to punish Susie for Danny&#8217;s crimes.</p><p>So, how long should we ban IP&#8217;s for? Wikipedia, who certainly needs to deal with IP blocking on a regular basis, <a
href="http://en.wikipedia.org/wiki/Wikipedia:Blocking_IP_addresses">has a few choice words</a>:</p><blockquote><p>Most IP addresses should not be blocked more than a few hours, since the malicious user will probably move on by the time the block expires.</p></blockquote><blockquote><p>IP addresses should almost never be indefinitely blocked. Many IP addresses are dynamically assigned and change frequently from one person to the next, and even static IP addresses are periodically re-assigned or have different users. In cases of long-term vandalism from an IP address, consider blocks over a period of months or years instead. Long-term blocks should never be used for isolated incidents, regardless of the nature of their policy violation.</p></blockquote><p>I can get on board with that. IP blocks should only last a limited time, since all IPs eventually change. Most blocks should be short, but if you experience long-term bad activity, make the ban longer. In the case of this site and WordPress, the Discussion Settings also offer a Moderation list, so you don&#8217;t actually have straight blacklist IP&#8217;s at all if you don&#8217;t want, and even if you do, you can move them from the blacklist to the moderation list after a while and be fine.</p><p>Anyone else have any theories or research to share?</p> ]]></content:encoded> <wfw:commentRss>http://css-tricks.com/how-long-should-we-ban-ips/feed/</wfw:commentRss> <slash:comments>35</slash:comments> </item> <item><title>BonBon Buttons</title><link>http://lab.simurai.com/css/buttons/</link> <comments>http://css-tricks.com/bonbon-buttons/#comments</comments> <pubDate>Thu, 02 Sep 2010 19:12:44 +0000</pubDate> <dc:creator>Chris Coyier</dc:creator> <category><![CDATA[Link]]></category><guid isPermaLink="false">http://css-tricks.com/?p=7350</guid> <description><![CDATA[<p>These are way above and beyond the level of any other &#8220;CSS3 buttons&#8221; I&#8217;ve seen. Multiple backgrounds combining gradients and images, uneven border-radius, pseudo elements, HSL coloring, @font-face icons, transitions, box shadows, text shadows, hover and active states&#8230; the list goes on. Every trick in the book masterfully employed.</p><p>They make <a
href="http://css-tricks.com/examples/ButtonMaker/">my button maker</a> look dull and flat.</p><p><a
href="http://lab.simurai.com/css/buttons/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a
href="http://css-tricks.com/bonbon-buttons/">Permalink</a></p>]]></description> <content:encoded><![CDATA[<p>These are way above and beyond the level of any other &#8220;CSS3 buttons&#8221; I&#8217;ve seen. Multiple backgrounds combining gradients and images, uneven border-radius, pseudo elements, HSL coloring, @font-face icons, transitions, box shadows, text shadows, hover and active states&#8230; the list goes on. Every trick in the book masterfully employed.</p><p>They make <a
href="http://css-tricks.com/examples/ButtonMaker/">my button maker</a> look dull and flat.</p><p><a
href="http://lab.simurai.com/css/buttons/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a
href="http://css-tricks.com/bonbon-buttons/">Permalink</a></p>]]></content:encoded> <wfw:commentRss>http://css-tricks.com/bonbon-buttons/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Fluid Width YouTube Videos</title><link>http://css-tricks.com/fluid-width-youtube-videos/</link> <comments>http://css-tricks.com/fluid-width-youtube-videos/#comments</comments> <pubDate>Thu, 02 Sep 2010 15:05:33 +0000</pubDate> <dc:creator>Chris Coyier</dc:creator> <category><![CDATA[Article]]></category><guid isPermaLink="false">http://css-tricks.com/?p=7066</guid> <description><![CDATA[<p>I saw that Andy Clarke had added a fluid width YouTube video to <a
href="http://lookingforyogi.com/writing/about/no-smarter-than-the-average-bear/">a particular page</a> on one of his sites. His code relies upon a wrapping div and then images and video within this wrapper are set to the width of the wrapper:</p> .img img, .img object, img embed {
width: 100%;
}<p>I love the idea. It&#8217;s essentially the classic technique for dealing with images in fluid width designs. Andy&#8217;s code sets max-width to 100% here&#8230;</p>]]></description> <content:encoded><![CDATA[<div
class="image-wrap"> <img
src="http://cdn.css-tricks.com/wp-content/uploads/2010/09/fluidwidthyoutube.jpg" alt="" title="fluidwidthyoutube" width="570" height="382" class="alignnone size-full wp-image-7347" /></div><p>I saw that Andy Clarke had added a fluid width YouTube video to <a
href="http://lookingforyogi.com/writing/about/no-smarter-than-the-average-bear/">a particular page</a> on one of his sites. His code relies upon a wrapping div and then images and video within this wrapper are set to the width of the wrapper:</p><pre><code class="css">.img img, .img object, img embed {
   width: 100%;
}</code></pre><p>I love the idea. It&#8217;s essentially the classic technique for dealing with images in fluid width designs. Andy&#8217;s code sets <code>max-width</code> to 100% here too, but since the width is already 100% that doesn&#8217;t matter. Max-width works best by itself. So it can scale down images which could be larger than the wrapper, but not scale them up if they are smaller. For video, scaling up is probably fine. I&#8217;d suggest this change:</p><pre><code class="css">.img img {
   max-width: 100%;
}
.img object, .img embed {
   width: 100%;
}</code></pre><p>That will scales images only down if needed, and videos up or down.</p><h3>Keeping Aspect Ratios</h3><p>With images, as long as there isn&#8217;t an inline &#8220;height&#8221; setting, the aspect radio will be maintained in a fluid width environment <strong>even when you only alter the width</strong>. With video (flash or otherwise) this is not the case. If we want to maintain aspect ratio while the video grows and shrinks in width, we&#8217;re going to need JavaScript.</p><p>Example YouTube Provided Code:</p><pre><code class="html">&lt;object width="640" height="385"&gt;
	&lt;param name="movie" value="http://www.youtube.com/v/EWsWFjO9MlE?fs=1&amp;amp;hl=en_US"&gt;&lt;/param&gt;
	&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;
	&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;

	&lt;embed src="http://www.youtube.com/v/EWsWFjO9MlE?fs=1&amp;amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"&gt;&lt;/embed&gt;
&lt;/object&gt;</code></pre><p>This is the plan:</p><ol><li>Find original aspect ratio by dividing original height by width</li><li>When window is resized&#8230;</li><li>Measure width of parent</li><li>Set width of video to width of parent</li><li>Set height of video to width multiplied by aspect ratio</li><li>Trigger a fake resize on pageload to ensure video fits right away</li></ol><p>Here, we&#8217;re using jQuery. Take note that we are target both the class name of .youtube and the embed within that class name. This is presupposing that we are adding a classname of .youtube to the object in the copy-and-paste code YouTube provides. Feel free to adjust the selectors as you wish. You may wish to target all objects themselves, or use a special wrapper. Here we&#8217;re using the #page-wrap of all the content to measure width.</p><pre><code class="javascript">&lt;script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js'&gt;&lt;/script&gt;
&lt;script&gt;
	var $origVideo = $(".youtube, .youtube embed");
	var aspectRatio = $origVideo.attr("height") / $origVideo.attr("width");

	$(window).resize(function() {
		var wrapWidth = $("#page-wrap").width();
		$origVideo
			.width(wrapWidth)
			.height(wrapWidth * aspectRatio);
	}).trigger("resize");
&lt;/script&gt;</code></pre><p>Also of note here is that we are targeting the <code>&lt;object&gt;</code>s and the <code>&lt;embed&gt;</code>s within them with this JavaScript. Targeting the objects alone will work in modern browsers. Including the embed is fine for modern browsers and makes it work with Internet Explorer as well.</p><h3>Bonus Trick</h3><p>You can get rounded corners on your YouTube videos! The only luck I&#8217;ve had so far is in Google Chrome (7.0.503.0 dev).</p><ol><li>Add this param to your embed (within the object) <code>&lt;embed wmode="opaque" ...</code></li><li>Then you can add border radius to the object<pre><code class="css">object {
	border-radius: 10px;
}</code></pre></li></ol><div
class="image-wrap"> <img
src="http://cdn.css-tricks.com/wp-content/uploads/2010/09/roundedyoutube.png" alt="" title="roundedyoutube" width="207" height="111" class="alignnone size-full wp-image-7340" /></p><p>Credit to <a
href="http://forrst.com/posts/CSS3_-webkit-border-radius_and_Flash_Great_for_Yo-y22">ubahnverleih on Forrst</a> for the idea.</p></div><h3>Demo &#038; Download</h3><p><a
href="http://css-tricks.com/examples/FluidWidthYouTube/" class="button">View Demo</a> &nbsp; <a
href="http://css-tricks.com/examples/FluidWidthYouTube.zip" class="button">Download Files</a></p><h3>UR DOIN IT WRG</h3><p>This worked in all browsers I tried, including Internet Explorer (tested 7 &#038; 8), but not Opera. The best I can tell is that Opera respects in the inline width and height attributes over those set via inline styling. If anyone knows of a way to fix that, or if you think my whole method here is stupid and you have something better, please let me know and I&#8217;ll update things here.</p> ]]></content:encoded> <wfw:commentRss>http://css-tricks.com/fluid-width-youtube-videos/feed/</wfw:commentRss> <slash:comments>30</slash:comments> </item> <item><title>HTML, CSS, and Javascript from the Ground Up</title><link>http://code.google.com/edu/submissions/html-css-javascript/</link> <comments>http://css-tricks.com/from-the-ground-up/#comments</comments> <pubDate>Thu, 02 Sep 2010 00:48:17 +0000</pubDate> <dc:creator>Chris Coyier</dc:creator> <category><![CDATA[Link]]></category><guid isPermaLink="false">http://css-tricks.com/?p=7335</guid> <description><![CDATA[<p>I&#8217;ve done my own <a
href="http://css-tricks.com/video-screencasts/58-html-css-the-very-basics/">The VERY Basics screencast</a>, but this full series from Google, targeted at <strong>just-starting-out beginners</strong>, would be a good place to go directly after my intro, to take things further along.</p><p><a
href="http://code.google.com/edu/submissions/html-css-javascript/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a
href="http://css-tricks.com/from-the-ground-up/">Permalink</a></p>]]></description> <content:encoded><![CDATA[<p>I&#8217;ve done my own <a
href="http://css-tricks.com/video-screencasts/58-html-css-the-very-basics/">The VERY Basics screencast</a>, but this full series from Google, targeted at <strong>just-starting-out beginners</strong>, would be a good place to go directly after my intro, to take things further along.</p><p><a
href="http://code.google.com/edu/submissions/html-css-javascript/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a
href="http://css-tricks.com/from-the-ground-up/">Permalink</a></p>]]></content:encoded> <wfw:commentRss>http://css-tricks.com/from-the-ground-up/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Digging Into WordPress, The Book, Version 3</title><link>http://css-tricks.com/digwp-v3/</link> <comments>http://css-tricks.com/digwp-v3/#comments</comments> <pubDate>Wed, 01 Sep 2010 13:34:03 +0000</pubDate> <dc:creator>Chris Coyier</dc:creator> <category><![CDATA[Article]]></category><guid isPermaLink="false">http://css-tricks.com/?p=7328</guid> <description><![CDATA[<p>When we first released the book <a
href="http://digwp.com/book/">Digging Into WordPress</a>, we thought of some reasons why people might <strong>not</strong> want to buy it. A big reason is because tech books can go out of date quickly, especially when the subject is a fast-developing technology like WordPress. So, we fixed that. When you buy this book, you get PDF updates to it for life.</p><p>Today is just such an event. WordPress 3.0 has been out for a while now, and so&#8230;</p>]]></description> <content:encoded><![CDATA[<p>When we first released the book <a
href="http://digwp.com/book/">Digging Into WordPress</a>, we thought of some reasons why people might <strong>not</strong> want to buy it. A big reason is because tech books can go out of date quickly, especially when the subject is a fast-developing technology like WordPress. So, we fixed that. When you buy this book, you get PDF updates to it for life.</p><p>Today is just such an event. WordPress 3.0 has been out for a while now, and so it&#8217;s time for our second major update. This is the biggest one yet. We&#8217;ve combed through the entire book updating anything that was out of date or stale. We&#8217;ve also added a new Chapter 12, which is specific to the 3.0 update. The book is also sportin a brand new front and back cover!</p><p><a
href="http://digwp.com/book/"><img
src="http://cdn.css-tricks.com/wp-content/uploads/2010/08/digwp3cover.jpg" alt="" title="digwp3cover" width="570" height="456" class="alignnone size-full wp-image-7329" /><br
/> </a></p><p>If you already own our book in any form, this is old news, because we&#8217;ve already sent out an update email containing your new download. If you didn&#8217;t get it (spam filters happen), email <a
href="mailto:sales@digwp.com">sales@digwp.com</a> with your original receipt and we&#8217;ll make sure you get it.</p><p>If you are considering it, but want to know more, you should check out the <a
href="http://digwp.com/book-demo/Digging-Into-WP-DEMO.pdf">PDF sample of the book</a>.</p><p>Regarding print version of the book, <strong>yes</strong>, they are coming back! It&#8217;s going to take us about a month to have them ready. <del>If you&#8217;d rather not wait, you can buy the PDF now, and when the print version is ready forward us your receipt. We&#8217;ll send you a coupon code for exactly what you paid for the PDF to use in purchasing the print version.</del> I&#8217;m sorry I spoke to soon on this issue. We are <strong>NOT</strong> offering any discounts on the printed version.</p> ]]></content:encoded> <wfw:commentRss>http://css-tricks.com/digwp-v3/feed/</wfw:commentRss> <slash:comments>33</slash:comments> </item> <item><title>New Screencast: The WordPress Loop</title><link>http://css-tricks.com/new-screencast/</link> <comments>http://css-tricks.com/new-screencast/#comments</comments> <pubDate>Tue, 31 Aug 2010 07:10:55 +0000</pubDate> <dc:creator>Chris Coyier</dc:creator> <category><![CDATA[Screencast]]></category><guid isPermaLink="false">http://css-tricks.com/?p=5380</guid> <description><![CDATA[<blockquote><p>There is no shortage of documentation on WordPress’ famous content-spewing structure, but I still feel like there is more confusion and mystery surrounding “The Loop” than there should be. In this screencast I try and explain what it is, how it works, related parts, and then demonstrate some alterations and various tricks. Things like running multiple loops, writing your own custom queries, and handling pagination with your own custom loops.</p></blockquote><p><a
href="http://css-tricks.com/video-screencasts/91-the-wordpress-loop/"><br
/> View Screencast</a></p> ]]></description> <content:encoded><![CDATA[<blockquote><p>There is no shortage of documentation on WordPress’ famous content-spewing structure, but I still feel like there is more confusion and mystery surrounding “The Loop” than there should be. In this screencast I try and explain what it is, how it works, related parts, and then demonstrate some alterations and various tricks. Things like running multiple loops, writing your own custom queries, and handling pagination with your own custom loops.</p></blockquote><p><a
href="http://css-tricks.com/video-screencasts/91-the-wordpress-loop/"><img
src="http://cdn.css-tricks.com/wp-content/uploads/2010/08/screencast-91-thumb.png" alt="" title="" /><br
/> View Screencast</a></p> ]]></content:encoded> <wfw:commentRss>http://css-tricks.com/new-screencast/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Percentage Bugs in WebKit</title><link>http://css-tricks.com/percentage-bugs-in-webkit/</link> <comments>http://css-tricks.com/percentage-bugs-in-webkit/#comments</comments> <pubDate>Mon, 30 Aug 2010 12:52:16 +0000</pubDate> <dc:creator>Chris Coyier</dc:creator> <category><![CDATA[Article]]></category><guid isPermaLink="false">http://css-tricks.com/?p=7288</guid> <description><![CDATA[<p>Using percentage values for certain things can have slightly unexpected results in WebKit based browsers. For instance, if you have a series of columns set in percentage widths with percentage padding, WebKit can calculate their sizing rather strangely.</p><p><span
id="more-7288"></span></p><p>The red lines indicate the column as rendered with WebKit. The background shades of gray are accurate placement of those columns in percentage widths.</p><p>It&#8217;s percentages in general that seem to be the issue. I haven&#8217;t been able to dig&#8230;</p>]]></description> <content:encoded><![CDATA[<p>Using percentage values for certain things can have slightly unexpected results in WebKit based browsers. For instance, if you have a series of columns set in percentage widths with percentage padding, WebKit can calculate their sizing rather strangely.</p><p><span
id="more-7288"></span></p><div
class="image-wrap"> <img
src="http://cdn.css-tricks.com/wp-content/uploads/2010/08/bad-calc.png" alt="" title="bad-calc" width="570" height="188" class="alignnone size-full wp-image-7303" /></p><p>The red lines indicate the column as rendered with WebKit. The background shades of gray are accurate placement of those columns in percentage widths.</p></div><p>It&#8217;s percentages in general that seem to be the issue. I haven&#8217;t been able to dig up a ton of information on it, although I do seem to remember reading something about it quite a while ago. I think it&#8217;s related to how subpixel values are calculated. For example, if a container is 657px wide currently, and has four columns at 25% each, they would be 164.25px each wide, and WebKit doesn&#8217;t handle that well (rounding issues?) Other browsers handle the &#8220;subpixel&#8221; value OK.</p><div
class="image-wrap"> <img
src="http://cdn.css-tricks.com/wp-content/uploads/2010/08/fine.png" alt="" title="fine" width="570" height="226" class="alignnone size-full wp-image-7304" /></p><p>Firefox, IE, and Opera are fine.</p></div><p>Thanks to <a
href="http://nicolasgallagher.com/">Nicolas Gallagher</a> for pointing this out to me. If I&#8217;m way behind the times on this, feel free to yell at me, but throw me some links and information so I can update this post with the most accurate information I can. <a
href="https://lists.webkit.org/pipermail/webkit-unassigned/2006-January/002684.html">This link</a> seems to indicate the issue has been around a while.</p><p>Remember this is only really an issue if you are doing something like shown in these examples with solid color columns. If you didn&#8217;t have any visual separators, it might not be a big deal, just a slight cross browser difference very few people would ever notice.</p> ]]></content:encoded> <wfw:commentRss>http://css-tricks.com/percentage-bugs-in-webkit/feed/</wfw:commentRss> <slash:comments>29</slash:comments> </item> <item><title>More on CSS Selector Performance</title><link>http://stevesouders.com/docs/web20expo-20090402.ppt</link> <comments>http://css-tricks.com/more-on-css-selector-performance/#comments</comments> <pubDate>Sun, 29 Aug 2010 15:49:20 +0000</pubDate> <dc:creator>Chris Coyier</dc:creator> <category><![CDATA[Link]]></category><guid isPermaLink="false">http://css-tricks.com/?p=7300</guid> <description><![CDATA[<p>This is a direct link to a PowerPoint file by Steve Souders (in April 2009). Of particular interest is pages 19-33 with all the information on CSS selectors. Evidence points to yes, there are efficiency differences in how you write selectors. But efficient CSS can sometimes come at the cost of larger CSS (bad) and that a &#8220;real world&#8221; levels even &#8220;costly&#8221; selectors aren&#8217;t that big of a deal.</p><p><a
href="http://stevesouders.com/docs/web20expo-20090402.ppt" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a
href="http://css-tricks.com/more-on-css-selector-performance/">Permalink</a></p>]]></description> <content:encoded><![CDATA[<p>This is a direct link to a PowerPoint file by Steve Souders (in April 2009). Of particular interest is pages 19-33 with all the information on CSS selectors. Evidence points to yes, there are efficiency differences in how you write selectors. But efficient CSS can sometimes come at the cost of larger CSS (bad) and that a &#8220;real world&#8221; levels even &#8220;costly&#8221; selectors aren&#8217;t that big of a deal.</p><p><a
href="http://stevesouders.com/docs/web20expo-20090402.ppt" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a
href="http://css-tricks.com/more-on-css-selector-performance/">Permalink</a></p>]]></content:encoded> <wfw:commentRss>http://css-tricks.com/more-on-css-selector-performance/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss><!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using apc
Content Delivery Network via cdn.css-tricks.com

Served from: css-tricks.com @ 2010-09-08 21:09:00 -->
