<?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>David Lewis &#187; CSS</title>
	<atom:link href="http://www.david-lewis.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.david-lewis.com</link>
	<description>Mostly HTML, CSS and JavaScript</description>
	<lastBuildDate>Sun, 19 Sep 2010 03:15:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Articles I really must read when I get to work</title>
		<link>http://www.david-lewis.com/2010/09/18/articles-i-really-must-read-when-i-get-to-work/</link>
		<comments>http://www.david-lewis.com/2010/09/18/articles-i-really-must-read-when-i-get-to-work/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 03:15:19 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[Canvas]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[Thomas Fuchs]]></category>

		<guid isPermaLink="false">http://www.david-lewis.com/?p=43</guid>
		<description><![CDATA[Quick post with a series of URLs I&#8217;m keen to look at in more detail. I tend to skim things when I come across them, but the following pages deserve a closer look and a demo or 2. Creating awesome CSS3 animations &#8211; Thomas Fuchs At the moment, my work is all about how to [...]]]></description>
			<content:encoded><![CDATA[<p>Quick post with a series of URLs I&#8217;m keen to look at in more detail. I tend to skim things when I come across them, but the following pages deserve a closer look and a demo or 2.</p>
<h2><a href="http://mir.aculo.us/2010/08/27/creating-awesome-css3-animations/">Creating awesome CSS3 animations</a> &#8211; <em> Thomas Fuchs</em></h2>
<p>At the moment, my work is all about how to start producing Flash style animation without Flash. This looks like it should give me a few insights into achieving this with CSS.</p>
<h2><a href="http://www.monocubed.com/">Processing demos at Monocubed</a></h2>
<p>On the path to figuring out this animation puzzle I&#8217;ve also been playing around with ProcessingJS. Monocubed has heaps of great demos, most of which are really easy to replicate</p>
<h2><a href="http://camendesign.com/developpeurs_sans_frontieres">How to Centre and Layout Pages Without a Wrapper</a></h2>
<p>As soon as I read  the first paragraph I&#8217;d ripped off the idea and starting playing with code. But I really should read through this article entirely</p>
<h2><a href="http://html5doctor.com/">HTML5 Doctor</a></h2>
<p>Just sit down and devour this site I think&#8230;</p>
<h2><a href="http://www.webdesignerwall.com/tutorials/cross-browser-css-gradient/">CSS Gradients</a></h2>
<p>Turns out that ye olde IE6+ has some gradient tricks up it&#8217;s sleeve&#8230; not quite (!) as flexible as the modern browsers, but still work reviewing this to see what can be squeezed out of the old dog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.david-lewis.com/2010/09/18/articles-i-really-must-read-when-i-get-to-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working together with CSS</title>
		<link>http://www.david-lewis.com/2009/11/07/working-together-with-css/</link>
		<comments>http://www.david-lewis.com/2009/11/07/working-together-with-css/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 23:39:09 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://www.david-lewis.com/?p=10</guid>
		<description><![CDATA[For the majority of the time I&#8217;ve been developing websites I&#8217;ve done it alone, not having to worry about other people understanding my code or thinking about what happens when I&#8217;m not longer around to look after it. In the last 3 years I have worked in larger and larger teams and I&#8217;ve found the [...]]]></description>
			<content:encoded><![CDATA[<p>For the majority of the time I&#8217;ve been developing websites I&#8217;ve done it alone, not having to worry about other people understanding my code or thinking about what happens when I&#8217;m not longer around to look after it.</p>
<p>In the last 3 years I have worked in larger and larger teams and I&#8217;ve found the following guidelines quite useful for making the change from solo developer to a member of a team.<span id="more-10"></span></p>
<h2>Some General Rules to keep in mind</h2>
<ul>
<li>Working in a team, you have to surrender some of your personal preferences when writing your CSS (eg comments style, how you format the document, and how you build the directory structure).</li>
<li>Expectaion should be that by looking at the web page, you can predict the CSS code before you look at the source file, and that you can quickly scan the CSS file to find what element is being styled.</li>
<li>The basis of good CSS needs to be in consistently written HTML, if HTML is inconsistent you will end up writing CSS to compencate. More code means more difficulty in maintenance.</li>
<li>Be consistent with the CSS file, don&#8217;t mix formatting styles or selector styles. If you lose consistency it will make the developer have to stop and think each time consistency is broken. This will slow you down.</li>
<li>If you are going to be maintaining the CSS after site launch: Out of the selector and the style defined, the selector is more important to you. The formatting of your document should reflect this.</li>
</ul>
<p>Bear in mind that these rules can&#8217;t always work for you, but try to follow them if you can.</p>
<h2>Stock standard CSS</h2>
<p>Use reset, and a common way to measure fonts. Establish the font measurements and stick to them.</p>
<h2>What CSS to put on what area of the page</h2>
<h3>Layout</h3>
<p>Layout should only deal with the grid layout for the page, therefore you shouldn&#8217;t need anything more that widths, floats, position&#8230; maybe some padding or margins.</p>
<h3>Site Furniture, Modules and page specific content</h3>
<p>These are similar in concept. This makes up the majority of your page, you should avoid setting explicit widths on modules, allowing the layout to take care of how wide modules and furniture should be.</p>
<h2>Formatting code and consistent selectors</h2>
<p>These two areas need to be consistent, once they are you will be able to quickly scan your CSS document to find which rules are applying to which elements</p>
<h3>Formatting code</h3>
<ul>
<li>One line, alphabetical order of properties (I know alphabetical is anal)</li>
<li>Don&#8217;t indent your code, the approach to using the selectors will automatically take care of that.</li>
</ul>
<h3>Selectors</h3>
<ul>
<li>Try to keep general style rules for tags to a minimum.</li>
<li>Begin all your selectors from the same place, and begin them from either the layout, furniture, module or page specific root. eg (.module .heading .h3 {} .group .item .)</li>
<li>Be as descriptive as you can be with you selector</li>
<li>Only make a general rule if you are confident it&#8217;s not going to cause problems with other elements</li>
</ul>
<h2>Dealing with Hacks</h2>
<p>Don&#8217;t use hacks inline with the stylesheet, seperate them out and put them in a seperate style sheet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.david-lewis.com/2009/11/07/working-together-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

