<?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>IdealStyleAndDesign.com &#187; CSS Styling</title>
	<atom:link href="http://www.idealstyleanddesign.com/category/css-styling/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.idealstyleanddesign.com</link>
	<description>Ideal Style And Design</description>
	<lastBuildDate>Wed, 21 Sep 2011 11:20:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>It’s The Final Countdown</title>
		<link>http://www.idealstyleanddesign.com/it%e2%80%99s-the-final%c2%a0countdown/</link>
		<comments>http://www.idealstyleanddesign.com/it%e2%80%99s-the-final%c2%a0countdown/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 12:29:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Styling]]></category>
		<category><![CDATA[Final Countdown]]></category>
		<category><![CDATA[It’s]]></category>

		<guid isPermaLink="false">http://www.idealstyleanddesign.com/it%e2%80%99s-the-final%c2%a0countdown/</guid>
		<description><![CDATA[Microsoft themselves is tracking and promoting the demise of IE 6. China? 34.5%? Seriously?
And I can&#8217;t help but hum a little Europe:
We&#8217;re leaving together But still it&#8217;s farewell And maybe we&#8217;ll come back To earth, who can tell? I guess there is no one to blame We&#8217;re leaving ground Will things ever be the same [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Microsoft themselves is tracking and promoting the demise of IE 6. China? 34.5%? Seriously?</p>
<p>And I can&#8217;t help but hum a little Europe:</p>
<blockquote><p>We&#8217;re leaving together<br<br />
/> But still it&#8217;s farewell<br<br />
/> And maybe we&#8217;ll come back<br<br />
/> To earth, who can tell?<br<br />
/> I guess there is no one to blame<br<br />
/> We&#8217;re leaving ground<br<br />
/> Will things ever be the same again?</p>
</blockquote>
<p>Direct Link to Article &#8212; Permalink</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.idealstyleanddesign.com/it%e2%80%99s-the-final%c2%a0countdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebKit Adjacent/General Sibling &amp; Pseudo Class Bug</title>
		<link>http://www.idealstyleanddesign.com/webkit-adjacentgeneral-sibling-pseudo-class%c2%a0bug/</link>
		<comments>http://www.idealstyleanddesign.com/webkit-adjacentgeneral-sibling-pseudo-class%c2%a0bug/#comments</comments>
		<pubDate>Sat, 05 Feb 2011 12:33:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Styling]]></category>
		<category><![CDATA[Adjacent/General]]></category>
		<category><![CDATA[Class Bug]]></category>
		<category><![CDATA[Pseudo]]></category>
		<category><![CDATA[Sibling]]></category>
		<category><![CDATA[WebKit]]></category>

		<guid isPermaLink="false">http://www.idealstyleanddesign.com/webkit-adjacentgeneral-sibling-pseudo-class%c2%a0bug/</guid>
		<description><![CDATA[It&#8217;s not every day you come across a solid bug in WebKit, which it seems to me leads the pack in quality support of CSS. Alexander Futekov emailed to let me know about this one, which somehow I have never personally come across.
The problem is using adjacent (+) or general (~) sibling selectors combined with [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s not every day you come across a solid bug in WebKit, which it seems to me leads the pack in quality support of CSS. Alexander Futekov emailed to let me know about this one, which somehow I have never personally come across.</p>
<p>The problem is using adjacent (+) or general (~) sibling selectors combined with pseudo classes. Like this: <span id="more-8439"></span></p>
<pre rel="CSS"><code class="lang-css prettyprint">h1 ~ p { color: black; }
h1:hover ~ p { color: red; }</code></pre>
<p>Nothing wrong with that, right? Seems pretty straightforward. That just doesn&#8217;t work in WebKit, nothing happens. There are lots of weird quirks that can affect it and seemingly fix parts of it. Like this:</p>
<pre rel="CSS"><code class="lang-css prettyprint">/* This affects both paragraphs */
h1 ~ p { font: 18px Helvetica, Arial, Sans-Serif; }

/* This works */
h1:hover + p { color: red; }

/* This only affects first
... and does nothing without previous rule */
h1:hover ~ p { color: blue; }</code></pre>
<p>I didn&#8217;t test every single one, but there are apparently issues with all the pseudo selectors (:focus, :hover, :checked, :enabled, etc)</p>
<h3>A CSS Only Fix!</h3>
<p>Alexander also sent a clever CSS only fix to the issue. Use a do-nothing animation on the <code>body</code>:</p>
<pre rel="CSS"><code class="lang-css prettyprint">body { -webkit-animation: bugfix infinite 1s; }
@-webkit-keyframes bugfix { from { padding: 0; } to { padding: 0; } }</code></pre>
<p>WebKit-only fix to a WebKit-only problem.</p>
<h3>Well Documented</h3>
<p>This is certainly not the first report of this. Here are some bug reports:</p>
<ul>
<li>bugs.webkit.org/show_bug.cgi?id=12520</li>
<li>bugs.webkit.org/show_bug.cgi?id=17680</li>
<li>bugs.webkit.org/show_bug.cgi?id=18026</li>
<li>bugs.webkit.org/show_bug.cgi?id=18027</li>
<li>bugs.webkit.org/show_bug.cgi?id=26539</li>
<li>bugs.webkit.org/show_bug.cgi?id=29029</li>
<li>bugs.webkit.org/show_bug.cgi?id=32695</li>
<li>bugs.webkit.org/show_bug.cgi?id=45168</li>
</ul>
<p>And other publications which mention the issue:</p>
<ul>
<li>Showing and hiding content with pure CSS3, in the Taking care of the elderly section</li>
<li>CSS3 :target based interfaces in the Issues with spiders and reptiles section</li>
<li>dev.opera.com/forums/topic/600712 &#8211; a brief discussion of the bug</li>
<li>Pure CSS collapsible tree menu in the &#8220;Another demo, another bug&#8221; section</li>
<li>Breadcrumbs (&#038; CSS3 general sibling selector) in the &#8220;Caveats&#8221; section</li>
<li>CSS3 &#8211; Almost a good idea but for Safari and Chrome of all browsers, where the webkit browsers are heavily criticized for the bug</li>
<li>Webkit Bug: Hover and Sibling Selector, an article about the bug featuring a couple of potential fixes.</li>
<li>Safari CSS :hover and Adjacent Sibling Selector Bug &#8211; yet another blog post about the issue</li>
<li>Safari bug report: Hover with adjacent selector doesn&#8217;t work, the Quirksmode take on the problem.</li>
</ul>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.idealstyleanddesign.com/webkit-adjacentgeneral-sibling-pseudo-class%c2%a0bug/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Mother Effing HSL</title>
		<link>http://www.idealstyleanddesign.com/mother-effing%c2%a0hsl/</link>
		<comments>http://www.idealstyleanddesign.com/mother-effing%c2%a0hsl/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 12:31:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Styling]]></category>
		<category><![CDATA[Effing HSL]]></category>
		<category><![CDATA[Mother]]></category>

		<guid isPermaLink="false">http://www.idealstyleanddesign.com/mother-effing%c2%a0hsl/</guid>
		<description><![CDATA[From the source code:
this site is by Paul Irish i made it cuz hsla is wayyyy cooler than rgba and more sensible too!

HSL is better than RGB. The reason it isn&#8217;t used as much (according to me) is because you can&#8217;t get HSL color values out of Photoshop. Hence, tools like this and my own.
Direct [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>From the source code:</p>
<blockquote><p>this site is by Paul Irish<br<br />
/> i made it cuz hsla is wayyyy cooler than rgba and more sensible too!</p>
</blockquote>
<p>HSL is better than RGB. The reason it isn&#8217;t used as much (according to me) is because you can&#8217;t get HSL color values out of Photoshop. Hence, tools like this and my own.</p>
<p>Direct Link to Article &#8212; Permalink</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.idealstyleanddesign.com/mother-effing%c2%a0hsl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Three-Sided Border</title>
		<link>http://www.idealstyleanddesign.com/three-sided%c2%a0border/</link>
		<comments>http://www.idealstyleanddesign.com/three-sided%c2%a0border/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 12:30:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Styling]]></category>
		<category><![CDATA[ThreeSided Border]]></category>

		<guid isPermaLink="false">http://www.idealstyleanddesign.com/three-sided%c2%a0border/</guid>
		<description><![CDATA[
If you need to put a border on only three sides of an element, there are a bunch of ways you can do it.
You can specifically declare the border on just three sides:
div {
  border-top:    1px solid red;
  border-right:  1px solid red;
  border-bottom: 1px solid red;
}
Verbose, but easy [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div<br />
style="width: 500px; height: 125px; border: 5px solid red; border-left: 0; margin: 0 0 20px 0;"></div>
<p>If you need to put a border on only three sides of an element, there are a bunch of ways you can do it.</p>
<p>You can specifically declare the border on just three sides:</p>
<pre rel="CSS"><code class="lang-css prettyprint">div {
  border-top:    1px solid red;
  border-right:  1px solid red;
  border-bottom: 1px solid red;
}</code></pre>
<p>Verbose, but easy to understand.</p>
<p>Or, you could declare just a <code>border</code> which will cover all four sides and remove the one you don&#8217;t want.</p>
<pre rel="CSS"><code class="lang-css prettyprint">div {
  border: 1px solid red;
  border-left: 0;
}</code></pre>
<p>Much shorter, but relies on understanding and maintaining that the border removing override is kept after the border declaration.</p>
<p>Or, you could declare the color and styling and use shorthand only the <code>border-width</code> to specifically declare the three sides.</p>
<pre rel="CSS"><code class="lang-css prettyprint">div {
  border-color: red;
  border-style: solid;
  border-width: 1px 1px 1px 0;
}</code></pre>
<p>Shorter than the first example, but less repeative. Just need to be aware if left border did acquire width it would already be red and solid.</p>
<p>And then there is the fact that borders affect the size of the element under the regular box model. If you wanted to add borders without adding to the size of the element, you&#8217;ll need to lean on CSS3. Here is a way to do it with inset shadows:</p>
<pre rel="CSS"><code class="lang-css prettyprint">div {
  -webkit-box-shadow:
     inset -1px 0   0 red,
     inset  0  -1px 0 red,
     inset  0   1px 0 red;
  -moz-box-shadow:
     inset -1px 0   0 red,
     inset  0  -1px 0 red,
     inset  0   1px 0 red;
  box-shadow:
     inset -1px 0   0 red,
     inset  0  -1px 0 red,
     inset  0   1px 0 red;
}</code></pre>
<p>But then inset box shadows has far less browser support than borders do. For example, the code above will only work in Internet Explorer version 9+. If you&#8217;d rather use borders, and still not affect the elements size, you could play with box-sizing, which is supported down to IE 8.</p>
<p>Oh the choices! This is such a small thing, but I think it is a good example of how there is so often many different ways to accomplish the same thing in CSS. If you are just starting out in CSS, is this kind of thing confusing or pretty straightforward?</p>
<p>See all examples.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.idealstyleanddesign.com/three-sided%c2%a0border/feed/</wfw:commentRss>
		<slash:comments>54</slash:comments>
		</item>
		<item>
		<title>WordPress Course: Creating Custom Themes</title>
		<link>http://www.idealstyleanddesign.com/wordpress-course-creating-custom%c2%a0themes/</link>
		<comments>http://www.idealstyleanddesign.com/wordpress-course-creating-custom%c2%a0themes/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 12:37:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Styling]]></category>
		<category><![CDATA[Course]]></category>
		<category><![CDATA[Creating]]></category>
		<category><![CDATA[Custom Themes]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.idealstyleanddesign.com/wordpress-course-creating-custom%c2%a0themes/</guid>
		<description><![CDATA[
Good news today for everyone interested in learning more about WordPress! I have a new training course available on Lynda.com: WordPress 3.0: Creating and Editing Custom Themes.

This is the most comprehensive training I have ever created, so if you are looking for a serious course to get you going with designing for WordPress, this is [...]


Related posts:<ol><li><a href='http://www.idealstyleanddesign.com/creating-the-mindset-of-a-winner-in-web-development/' rel='bookmark' title='Permanent Link: Creating the Mindset of a Winner in Web Development'>Creating the Mindset of a Winner in Web Development</a> <small> No matter what game you&#8217;re trying to improve on,...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><img<br />
src="http://cdn.css-tricks.com/wp-content/uploads/2010/11/lynda+wordpress.png" alt="" title="lynda+wordpress" width="570" height="262" class="alignnone size-full wp-image-7810" /></p>
<p>Good news today for everyone interested in learning more about WordPress! I have a new training course available on Lynda.com: WordPress 3.0: Creating and Editing Custom Themes.</p>
<p><span<br />
id="more-7809"></span></p>
<p>This is the most comprehensive training I have ever created, so if you are looking for a serious course to get you going with designing for WordPress, this is it. It is a 4.5 hour course that goes from the initial project idea and deciding upon WordPress, to designing from a blank Photoshop canvas, to HTML and CSS, to turning all that into a fully fleshed out WordPress theme (including blog, static pages, and a store using a variety of CMS concepts), to extending that theme through plugins and JavaScript.</p>
<p>There are a number of videos from the course that you can watch for free, but the complete course with all the juicy stuff is only available to Lynda.com subscribers. Lynda.com subscriptions start at $25/month and that gets you access to literally every one of their <strong>crazy enormous</strong> library of training videos. So if you are sorta-kinda interested in this, do note you get access to loads of other learnin&#8217; and you can cancel at any time. For $37.50/month, you get access to all the course files for all those courses too (which this course has). Discounts if you sign up for a year.</p>
<p>Go forth, and get your CMS on.</p>


<p>Related posts:<ol><li><a href='http://www.idealstyleanddesign.com/creating-the-mindset-of-a-winner-in-web-development/' rel='bookmark' title='Permanent Link: Creating the Mindset of a Winner in Web Development'>Creating the Mindset of a Winner in Web Development</a> <small> No matter what game you&#8217;re trying to improve on,...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.idealstyleanddesign.com/wordpress-course-creating-custom%c2%a0themes/feed/</wfw:commentRss>
		<slash:comments>54</slash:comments>
		</item>
		<item>
		<title>New Screencast: Code Walkthrough of Drawing Table</title>
		<link>http://www.idealstyleanddesign.com/new-screencast-code-walkthrough-of-drawing%c2%a0table/</link>
		<comments>http://www.idealstyleanddesign.com/new-screencast-code-walkthrough-of-drawing%c2%a0table/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 12:41:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Styling]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Drawing Table]]></category>
		<category><![CDATA[Screencast]]></category>
		<category><![CDATA[Walkthrough]]></category>

		<guid isPermaLink="false">http://www.idealstyleanddesign.com/new-screencast-code-walkthrough-of-drawing%c2%a0table/</guid>
		<description><![CDATA[The Drawing Table is in essence a mini one-page jQuery application. It has one primary function, creating a colored design by changing the colors of cells in an HTML table. However it has many features to make this as easy and useful as possible. In this screencast we walk through the existing code looking at [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<blockquote><p>The Drawing Table is in essence a mini one-page jQuery application. It has one primary function, creating a colored design by changing the colors of cells in an HTML table. However it has many features to make this as easy and useful as possible. In this screencast we walk through the existing code looking at the finished example, the markup, and the JavaScript powering that it  feature by feature.</p>
</blockquote>
<p><img<br />
src="http://cdn.css-tricks.com/wp-content/uploads/2010/10/screencast-92-thumb.png" alt="" title="" /><br<br />
/> View Screencast</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.idealstyleanddesign.com/new-screencast-code-walkthrough-of-drawing%c2%a0table/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ordering CSS3 Properties</title>
		<link>http://www.idealstyleanddesign.com/ordering-css3%c2%a0properties/</link>
		<comments>http://www.idealstyleanddesign.com/ordering-css3%c2%a0properties/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 12:27:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Styling]]></category>
		<category><![CDATA[CSS3 Properties]]></category>
		<category><![CDATA[Ordering]]></category>

		<guid isPermaLink="false">http://www.idealstyleanddesign.com/ordering-css3%c2%a0properties/</guid>
		<description><![CDATA[When writing CSS3 properties, the modern wisdom is to list the &#8220;real&#8221; property last and the vendor prefixes first:

.not-a-square {
   -webkit-border-radius: 10px;
   -moz-border-radius: 10px;
   border-radius: 10px;
}
Why is this method of ordering properties so commonly taught? Here is what it would look like &#8220;the wrong way&#8221;:
.not-a-square {
   border-radius: [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></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<br />
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 so commonly taught? 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>Here&#8217;s a simple chart 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<br />
class="image-wrap"> <img<br />
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>See here</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 dramaticly different syntaxes 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 @mattwiebe and @snookca for helping me understand this better.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.idealstyleanddesign.com/ordering-css3%c2%a0properties/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Fix Inserted HTML5 Content with HTML5 innerShiv</title>
		<link>http://www.idealstyleanddesign.com/fix-inserted-html5-content-with-html5%c2%a0innershiv/</link>
		<comments>http://www.idealstyleanddesign.com/fix-inserted-html5-content-with-html5%c2%a0innershiv/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 12:48:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Styling]]></category>
		<category><![CDATA[Content]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[HTML5 innerShiv]]></category>
		<category><![CDATA[Inserted]]></category>

		<guid isPermaLink="false">http://www.idealstyleanddesign.com/fix-inserted-html5-content-with-html5%c2%a0innershiv/</guid>
		<description><![CDATA[When working with HTML5 today, many of you know that you&#8217;ll need to include the &#8220;HTML5 shiv&#8221; to ensure that CSS will recognize and be able to style those elements in browsers that aren&#8217;t yet hip to HTML5.
&#60;!--[if IE]&#62;
  &#60;script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"&#62;&#60;/script&#62;
&#60;![endif]--&#62;
Credit for that to Remy Sharp, Jon Neal, John Resig and anybody else who [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>When working with HTML5 today, many of you know that you&#8217;ll need to include the &#8220;HTML5 shiv&#8221; to ensure that CSS will recognize and be able to style those elements in browsers that aren&#8217;t yet hip to HTML5.</p>
<pre><code class="html">&lt;!--[if IE]&gt;
  &lt;script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;
&lt;![endif]--&gt;</code></pre>
<p>Credit for that to Remy Sharp, Jon Neal, John Resig and anybody else who contributed to that idea. Also for the benefit of those non-hip browsers, it&#8217;s best to reset many of the HTML5 elements to block-level as they should be:</p>
<pre><code class="css">article, aside, figure, footer, header, hgroup,
menu, nav, section { display: block; }</code></pre>
<p>Now we&#8217;re all set to use and style HTML5 elements. But wait! What happens if we dynamically add HTML5 to the page via JavaScript.</p>
<pre><code class="javascript">var s = document.createElement('div');
s.innerHTML = "&lt;section&gt;Hi!&lt;/section&gt;";
document.body.appendChild(s);</code></pre>
<p>Or in jQuery:</p>
<pre><code class="javascript">$("body").append("&lt;section&gt;Hi!&lt;/section&gt;");</code></pre>
<p>Hip browsers do fine, but Internet Explorer will once again not recognize the new element and not apply CSS to it.</p>
<div class="image-wrap"> <img src="http://cdn.css-tricks.com/wp-content/uploads/2010/08/html5issues.png" alt="" title="html5issues" width="467" height="150" class="alignnone size-full wp-image-6973" /></div>
<p>Joe Bartlett has written a great work-around to the problem called HTML5 innerShiv and I thought more people should be aware of it.</p>
<p><span id="more-6869"></span></p>
<h3>Using it</h3>
<p>Please note that this script does not require jQuery. It&#8217;s just vanilla JavaScript and will work with any library or library at all.</p>
<h4>1. Download</h4>
<p>Download the script and insert it onto your page. Or copy and paste the script into other JavaScript you are already loading if you want to avoid an extra HTTP Request.</p>
<h4>2. Wrap all HTML content in innerShiv function before inserting</h4>
<p>Here is the same jQuery example as above, made to work using innerShiv:</p>
<pre><code class="javascript">$("body").append(innerShiv("&lt;section&gt;Hi!&lt;/section&gt;"));</code></pre>
<div class="image-wrap"> <img src="http://cdn.css-tricks.com/wp-content/uploads/2010/08/html5fixed.png" alt="" title="html5fixed" width="441" height="158" class="alignnone size-full wp-image-6974" /></div>
<p>Quick demo.</p>
<p>Remember to check out Joe&#8217;s page, which does a better job of explaining things.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.idealstyleanddesign.com/fix-inserted-html5-content-with-html5%c2%a0innershiv/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>The difference between ‘return false;’ and ‘e.preventDefault();’</title>
		<link>http://www.idealstyleanddesign.com/the-difference-between-%e2%80%98return-false%e2%80%99-and%c2%a0%e2%80%98e-preventdefault%e2%80%99/</link>
		<comments>http://www.idealstyleanddesign.com/the-difference-between-%e2%80%98return-false%e2%80%99-and%c2%a0%e2%80%98e-preventdefault%e2%80%99/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 23:35:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Styling]]></category>
		<category><![CDATA[and ‘e.preventDefault’]]></category>
		<category><![CDATA[between]]></category>
		<category><![CDATA[difference]]></category>
		<category><![CDATA[false’]]></category>
		<category><![CDATA[‘return]]></category>

		<guid isPermaLink="false">http://www.idealstyleanddesign.com/the-difference-between-%e2%80%98return-false%e2%80%99-and%c2%a0%e2%80%98e-preventdefault%e2%80%99/</guid>
		<description><![CDATA[Have you ever seen those two things (in the title) being used in jQuery? Here is a simple example:
$("a").click(function() {
   $("body").append($(this).attr("href"));
   return false;
}
That code would append the href attribute as text to the body every time a link was clicked but not actually go to that link. The return false; part [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Have you ever seen those two things (in the title) being used in jQuery? Here is a simple example:</p>
<pre><code class="javascript">$("a").click(function() {
   $("body").append($(this).attr("href"));
   return false;
}</code></pre>
<p>That code would append the <tt>href</tt> attribute as text to the body every time a link was clicked but <strong>not</strong> actually go to that link. The <tt>return false;</tt> part of that code prevents the browser from performing the default action for that link. That exact thing could be written like this:</p>
<pre><code class="javascript">$("a").click(function(e) {
   $("body").append($(this).attr("href"));
   e.preventDefault();
}</code></pre>
<p>So what&#8217;s the difference?</p>
<p><span id="more-6809"></span></p>
<p>The difference is that <tt>return false;</tt> takes things a bit further in that it also prevents that event from propagating (or &#8220;bubbling up&#8221;) the DOM. The you-may-not-know-this bit is that whenever an event happens on an element, that event is triggered on every single parent element as well. So let&#8217;s say you have a box inside a box. Both boxes have click events on them. Click on the inner box, a click will trigger on the outer box too, unless you prevent propagation. Like this:</p>
<div class="image-wrap"> <img src="http://cdn.css-tricks.com/wp-content/uploads/2010/07/propegationdemo.png" alt="" title="propegationdemo" width="570" height="605" class="alignnone size-full wp-image-6810" /><br /> This demo.</div>
<p>So in other words:</p>
<pre><code class="javascript">function() {
  return false;
}

// IS EQUAL TO

function(e) {
  e.preventDefault();
  e.stopPropagation();
}</code></pre>
<p>It&#8217;s all probably a lot more complicated than this and articles like this probably explain it all a lot better.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.idealstyleanddesign.com/the-difference-between-%e2%80%98return-false%e2%80%99-and%c2%a0%e2%80%98e-preventdefault%e2%80%99/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>New Screencast: Organizing a Photoshop Document</title>
		<link>http://www.idealstyleanddesign.com/new-screencast-organizing-a-photoshop%c2%a0document/</link>
		<comments>http://www.idealstyleanddesign.com/new-screencast-organizing-a-photoshop%c2%a0document/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 18:40:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Styling]]></category>
		<category><![CDATA[Organizing]]></category>
		<category><![CDATA[Photoshop Document]]></category>
		<category><![CDATA[Screencast]]></category>

		<guid isPermaLink="false">http://www.idealstyleanddesign.com/new-screencast-organizing-a-photoshop%c2%a0document/</guid>
		<description><![CDATA[If you are like me, you are both guilty of seriously unorganized Photoshop documents and appreciate well organized ones. The disorganization isn&#8217;t intentional, it&#8217;s just born of (if you&#8217;ll pardon the likely-inaccurate clich) being in right-brained creative mode and caring about what you are looking at not the left-brained organizational stuff. Then it compounds itself [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<blockquote><p>If you are like me, you are both guilty of seriously unorganized Photoshop documents and appreciate well organized ones. The disorganization isn&#8217;t intentional, it&#8217;s just born of (if you&#8217;ll pardon the likely-inaccurate clich) being in right-brained creative mode and caring about what you are looking at not the left-brained organizational stuff. Then it compounds itself as you go in and out of the file for days on end. If you are handing this file off to someone else, or are beginning the HTML/CSS conversion process, it&#8217;s a great idea to revisit the file with the specific intent of organizing it. We&#8217;ll cover good naming conventions, using folders, layer comps, and various other little tricks.</p>
</blockquote>
<p><img src="http://cdn.css-tricks.com/wp-content/uploads/2010/07/screencast-thumb-89.jpg" alt="" title="" /><br /> View Screencast</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.idealstyleanddesign.com/new-screencast-organizing-a-photoshop%c2%a0document/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

