<?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>everything flows &#187; css</title>
	<atom:link href="http://www.lukerodgers.ca/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lukerodgers.ca</link>
	<description>a celestial emporium of benevolent knowledge</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:12:10 +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>Facebook uses browser-specific body classes</title>
		<link>http://www.lukerodgers.ca/2009/08/facebook-uses-browser-specific-body-classes/</link>
		<comments>http://www.lukerodgers.ca/2009/08/facebook-uses-browser-specific-body-classes/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 04:00:53 +0000</pubDate>
		<dc:creator>Luke Rodgers</dc:creator>
				<category><![CDATA[web and tech]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.lukerodgers.ca/?p=607</guid>
		<description><![CDATA[Use browser-specific body classes to avoid extra stylesheets or invalid CSS]]></description>
			<content:encoded><![CDATA[<p>Having recently worked on a website for which page load and performance was really important, I&#8217;ve found myself viewing the source code for more and more sites. Taking a look at Facebook recently revealed that they use browser-specific classes on the body element, so that if you&#8217;re browsing with Safari 4, you&#8217;ll see something like:<span id="more-607"></span></p>
<p><code class="block">&lt;body class="home safari4 Locale_en_GB chat_body"&gt;</code></p>
<p>If you&#8217;re already browser sniffing, this might be a better idea for applying targeted <abbr title="Cascading Style Sheets">CSS</abbr> rules than including an extra stylesheet with conditional comments (which means an extra <abbr title="HyperText Transfer Protocol">HTTP</abbr> request), or using the underscore hack (<abbr title="Internet Explorer 6">IE6</abbr>), or star hack (IE7) which cause invalid <abbr title="Cascading Style Sheets">CSS</abbr>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lukerodgers.ca/2009/08/facebook-uses-browser-specific-body-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 CSS hacks with Wordpress.com</title>
		<link>http://www.lukerodgers.ca/2009/02/ie6-css-hacks-with-wordpresscom/</link>
		<comments>http://www.lukerodgers.ca/2009/02/ie6-css-hacks-with-wordpresscom/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 03:08:45 +0000</pubDate>
		<dc:creator>Luke Rodgers</dc:creator>
				<category><![CDATA[annoying things]]></category>
		<category><![CDATA[web and tech]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[ie6]]></category>

		<guid isPermaLink="false">http://www.lukerodgers.ca/?p=474</guid>
		<description><![CDATA[A trick for tweaking the CSS of your Wordpress.com blog for IE6.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a Wordpress.com blog for someone for which the &#8220;edit the <abbr title="Cascading Style Sheets">CSS</abbr>&#8221; upgrade has been purchased, and all has gone swell so far with tweaking the Kubrick theme. A couple <code>!important</code> declarations needed, but no big deal. That is, of course, until &#8220;make it work in <abbr title="Internet Explorer 6">IE6</abbr>&#8243; time came along.</p>
<p><span id="more-474"></span>Normally I&#8217;d just include a conditional comment, something seen by most developers to be a best practice, but in this case we can&#8217;t modify the php template files, so I had to break out the <abbr title="Cascading Style Sheets">CSS</abbr> hacks that I thought I had said goodbye to a few years ago.</p>
<p>There are several ways to go about this. First, I tried <a href="http://www.ejeliot.com/blog/63">these tips from Ed Eliot</a>, using the underscore trick to target just <abbr title="Internet Explorer 6">IE6</abbr>. But interestingly (and perhaps unsurprisingly) Wordpress.com apparently won&#8217;t let you save any code that isn&#8217;t valid. I had it confirmed by support that my <code>_margin-top: -200px;</code> wouldn&#8217;t work.</p>
<p>After briefly considering @importing another stylesheet, I instead went with the <abbr title="Cascading Style Sheets 2">CSS2</abbr> child selector approach outlined in a <a href="http://24ways.org/2005/avoiding-css-hacks-for-internet-explorer">24ways article from 2005</a>. Basically, since <abbr title="Internet Explorer 6">IE6</abbr> doesn&#8217;t support the child selector &#8216;&gt;&#8217;, you can make one declaration for <abbr title="Internet Explorer 6">IE6</abbr> then another for more advanced browsers using the child selector. E.g.<br />
<code class="block"> </code></p>
<pre>#content { /* for <abbr title="Internet Explorer 6">IE6</abbr> */
   margin-top: -200px;
}
#page &gt; #content { /* for other browsers, incl. IE7+ */
   margin-top: 40px;
}</pre>
<p>This might not get you all the mileage you need, but will probably help.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lukerodgers.ca/2009/02/ie6-css-hacks-with-wordpresscom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Incorporating web standards into your design brief or RFP</title>
		<link>http://www.lukerodgers.ca/2008/07/incorporating-web-standards-into-your-design-brief-or-rfp/</link>
		<comments>http://www.lukerodgers.ca/2008/07/incorporating-web-standards-into-your-design-brief-or-rfp/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 20:08:14 +0000</pubDate>
		<dc:creator>Luke Rodgers</dc:creator>
				<category><![CDATA[web and tech]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[projectmanagement]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[w3c]]></category>
		<category><![CDATA[wcag]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.lukerodgers.ca/?p=105</guid>
		<description><![CDATA[Working on a design brief for a radical makeover of the website at work, and have been doing a bit of digging around into how people specify web standards in their project specs. Came across this post from quite a while ago, and ended up using it as sort of a template, with some modifications:
Usability, [...]]]></description>
			<content:encoded><![CDATA[<p>Working on a design brief for a radical makeover of the website at work, and have been doing a bit of digging around into how people specify web standards in their project specs. Came across <a href="http://apartness.blogspot.com/2005/04/how-to-include-web-standards-in-rfp.html">this post</a> from quite a while ago, and ended up using it as sort of a template, with some modifications:</p>
<p><strong>Usability, accessibility and standards</strong></p>
<ul>
<li> The website will conform to the following standards:
<ul>
<li> Validation to either the <abbr title="World Wide Web Consortium">W3C</abbr> <abbr title="eXtensible HyperText Markup Language">XHTML</abbr> 1.0 transitional or strict document type</li>
</ul>
<ul>
<li>Validation to the <abbr title="World Wide Web Consortium">W3C</abbr>&#8217;s <abbr title="Cascading Style Sheets">CSS</abbr> 2.1 or 1.0</li>
</ul>
<ul>
<li>JavaScript will be implemented as progressive enhancement</li>
</ul>
<ul>
<li>Will meet all WCAG Priority 1 Guidelines, except  No. 1</li>
</ul>
</li>
<li>The website will render correctly in <abbr title="Internet Explorer 6">IE6</abbr>+ and Firefox 2+</li>
<li>All multimedia files will be available for download, and video will be provided via Flash</li>
<li>Alternative stylesheets will be developed for printers and mobile devices</li>
<li>Character encoding will be UTF-8</li>
</ul>
<p>This is still not solidified, and I may decide to put <abbr title="HyperText Markup Language">HTML</abbr> 4 in along with <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>, though my preference is for the latter (for more on developing with XHTMl, see Jeffrey Zeldman&#8217;s <a href="http://www.alistapart.com/stories/betterliving/">&#8220;Better living Through <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>&#8221;</a> at <cite>A List Apart</cite>).<span id="more-105"></span></p>
<p>Some other notes:</p>
<ul>
<li>No <abbr title="eXtensible HyperText Markup Language">XHTML</abbr> frameset doctype allowed!</li>
<li>Considered including the note about disallowing JavaScript browser detect methods  in favour of object detect, as mentioned in the article above, but sometimes you need both and there&#8217;s no point painting yourself into such a nitpicky corner. Specifying &#8220;progressive enhancement&#8221; instead of &#8220;graceful degradation&#8221; is a good idea.</li>
<li>Why just level 1 priorities of the <a href="http://www.w3.org/TR/WCAG10/">WCAG</a> and why exclude Guideline #1? It&#8217;s a human resources thing. It would be great if we could provide transcripts of all the audio and video we post, but it&#8217;s unfortunately just not realistic.</li>
<li>Why just <abbr title="Internet Explorer 6">IE6</abbr>+ and FF 2+? We get almost zero % of our users running Safari or <abbr title="Internet Explorer">IE</abbr> 5.5, and only about 0.7% running Opera. Anything below 5% and you have to seriously consider the time and resources involved in browser testing, tweaking and hacking&#8211;especially for <abbr title="Internet Explorer">IE</abbr> 5.5. My guess is that pretty much anything that works for Firefox 3 will be fine for Safari 3 and Opera 9+, and anything that doesn&#8217;t is probably trivial enough to forget about. If we were a big e-commerce site, and that 0.7% translated into 5,000 potential customers then I would probably think differently.</li>
<li>Flash&#8211;not quicktime (I always find it slow to load) and definitely not some Microsoft technology (that is also slow loading and may not work on a Mac). Flash is one of the most universally installed browser plugins.</li>
<li>Alternative stylesheets are a great idea to have control over how webpages print, and are also increasingly important given the proliferation of Internet-enabled mobile devices</li>
<li>Being a bilingual organization, we use a lot of French characters, and I find UTF-8 is the way to go.</li>
<li>We could specify mime type but I really don&#8217;t want to go there. There are lots of important articles discussing and usually warning against serving <abbr title="eXtensible HyperText Markup Language">XHTML</abbr> as text/html (see <a href="http://hixie.ch/advocacy/xhtml">here for the classic</a>, and <a href="http://www.w3.org/TR/xhtml-media-types/">here for the official</a>), but given that I expect all our pages to validate, I&#8217;m not incredibly concerned about this.</li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.lukerodgers.ca/2008/07/incorporating-web-standards-into-your-design-brief-or-rfp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
