<?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>Shawson&#039;s Code Blog &#187; CSS</title>
	<atom:link href="http://www.shawson.co.uk/codeblog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shawson.co.uk/codeblog</link>
	<description>development notes for my failing memory</description>
	<lastBuildDate>Mon, 26 Jul 2010 19:08:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google Font API</title>
		<link>http://www.shawson.co.uk/codeblog/google-font-api/</link>
		<comments>http://www.shawson.co.uk/codeblog/google-font-api/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 10:54:19 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=613</guid>
		<description><![CDATA[Just stumbled across the Google Font API- it&#8217;s a (at the moment) small directory of open source fonts hosted by google which can be used on your website via their font API.  Looking at the quick start it just seems to be a matter of adding an include to your page, then referencing the [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='Permanent Link: CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/cool-typography-tool-css-links/' rel='bookmark' title='Permanent Link: Cool typography tool &#038; CSS Links'>Cool typography tool &#038; CSS Links</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Just stumbled across the Google Font API- it&#8217;s a (at the moment) small directory of open source fonts hosted by google which can be used on your website <a href="http://code.google.com/webfonts">via their font API</a>.  Looking at the <a href="http://code.google.com/apis/webfonts/docs/getting_started.html#Quick_Start">quick start</a> it just seems to be a matter of adding an include to your page, then referencing the fonts in your css, like you would any other font.  Clever stuff!</p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='Permanent Link: CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/cool-typography-tool-css-links/' rel='bookmark' title='Permanent Link: Cool typography tool &#038; CSS Links'>Cool typography tool &#038; CSS Links</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/google-font-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 &amp; the Processing.js JavaScript library</title>
		<link>http://www.shawson.co.uk/codeblog/great-site-with-loads-of-javascript-and-css-resources/</link>
		<comments>http://www.shawson.co.uk/codeblog/great-site-with-loads-of-javascript-and-css-resources/#comments</comments>
		<pubDate>Tue, 04 May 2010 20:11:29 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=532</guid>
		<description><![CDATA[Just reading up on html5 and the processing.js javascript library which takes advantage of the new canvas element to do some pretty cool stuff (check out their &#8216;exhibition&#8217; section) &#8211; came across this site which has loads of useful stuff on it.. code.bocoup.com


Related posts:Processingjs &#038; Box2d Physics!
Great HTML5 Canvas/ Chrome Demo sites
Javascript Nintendo Emulator!!



Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/processingjs-box2d-physics/' rel='bookmark' title='Permanent Link: Processingjs &#038; Box2d Physics!'>Processingjs &#038; Box2d Physics!</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/great-html5-canvas-chrome-demo-site/' rel='bookmark' title='Permanent Link: Great HTML5 Canvas/ Chrome Demo sites'>Great HTML5 Canvas/ Chrome Demo sites</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/javascript-nintendo-emulator/' rel='bookmark' title='Permanent Link: Javascript Nintendo Emulator!!'>Javascript Nintendo Emulator!!</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Just reading up on html5 and the <a href="http://processingjs.org/">processing.js javascript library</a> which takes advantage of the new canvas element to do some pretty cool stuff (check out their &#8216;exhibition&#8217; section) &#8211; came across this site which has loads of useful stuff on it.. <a href="http://code.bocoup.com/">code.bocoup.com</a></p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/processingjs-box2d-physics/' rel='bookmark' title='Permanent Link: Processingjs &#038; Box2d Physics!'>Processingjs &#038; Box2d Physics!</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/great-html5-canvas-chrome-demo-site/' rel='bookmark' title='Permanent Link: Great HTML5 Canvas/ Chrome Demo sites'>Great HTML5 Canvas/ Chrome Demo sites</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/javascript-nintendo-emulator/' rel='bookmark' title='Permanent Link: Javascript Nintendo Emulator!!'>Javascript Nintendo Emulator!!</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/great-site-with-loads-of-javascript-and-css-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New site launch- natashahampshire.co.uk</title>
		<link>http://www.shawson.co.uk/codeblog/new-site-launch-natashahampshire-co-uk/</link>
		<comments>http://www.shawson.co.uk/codeblog/new-site-launch-natashahampshire-co-uk/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 21:04:44 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=525</guid>
		<description><![CDATA[Juts launched a new portfolio site for my girlfriend, www.natashahampshire.co.uk &#8211; This is just the first phase with a few more features and a bunch of extra contact to be added in the coming weeks, but we needed to get it up ASAP so she can apply for a design course in London!


Related posts:Javascript &#038; [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/javascript-css-minification/' rel='bookmark' title='Permanent Link: Javascript &#038; CSS Minification'>Javascript &#038; CSS Minification</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/multiple-domains-to-reduce-site-loading-times/' rel='bookmark' title='Permanent Link: Multiple domains to reduce site loading times'>Multiple domains to reduce site loading times</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/jqueryui/' rel='bookmark' title='Permanent Link: JQueryUI'>JQueryUI</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Juts launched a new portfolio site for my girlfriend, <a href="http://www.natashahampshire.co.uk">www.natashahampshire.co.uk</a> &#8211; This is just the first phase with a few more features and a bunch of extra contact to be added in the coming weeks, but we needed to get it up ASAP so she can apply for a design course in London!</p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/javascript-css-minification/' rel='bookmark' title='Permanent Link: Javascript &#038; CSS Minification'>Javascript &#038; CSS Minification</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/multiple-domains-to-reduce-site-loading-times/' rel='bookmark' title='Permanent Link: Multiple domains to reduce site loading times'>Multiple domains to reduce site loading times</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/jqueryui/' rel='bookmark' title='Permanent Link: JQueryUI'>JQueryUI</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/new-site-launch-natashahampshire-co-uk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript &amp; CSS Minification</title>
		<link>http://www.shawson.co.uk/codeblog/javascript-css-minification/</link>
		<comments>http://www.shawson.co.uk/codeblog/javascript-css-minification/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 19:14:48 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[minify]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=523</guid>
		<description><![CDATA[Is that a real word?
Well anyway, I&#8217;m just finishing off a fairly jQuery heavy site I&#8217;m building for my girlfriend as an online portfolio site and figured I&#8217;d minify the css and jQuery to reduce loading times (as all of my javascript includes combined come to around 100k)- found a really good java app writen [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/jquery-accordion-control-links-not-working/' rel='bookmark' title='Permanent Link: JQuery Accordion Control links not working'>JQuery Accordion Control links not working</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/asp-net-update-panels-and-jquery/' rel='bookmark' title='Permanent Link: ASP.net update panel&#8217;s and jQuery'>ASP.net update panel&#8217;s and jQuery</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Is that a real word?</p>
<p>Well anyway, I&#8217;m just finishing off a fairly jQuery heavy site I&#8217;m building for my girlfriend as an online portfolio site and figured I&#8217;d minify the css and jQuery to reduce loading times (as all of my javascript includes combined come to around 100k)- found a really good java app writen by Yahoo(!) called the <a href="http://developer.yahoo.com/yui/compressor/" target="_blank">YUI Compressor</a> &#8211; I combined all my javascript into one combined.js file then minified it nocking 30k off the file size.  Did the same with css only making a saving of 2-3 k, but every little helps!  Very easy to use, but it means you do have to install the java runtime <img src='http://www.shawson.co.uk/codeblog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/jquery-accordion-control-links-not-working/' rel='bookmark' title='Permanent Link: JQuery Accordion Control links not working'>JQuery Accordion Control links not working</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/asp-net-update-panels-and-jquery/' rel='bookmark' title='Permanent Link: ASP.net update panel&#8217;s and jQuery'>ASP.net update panel&#8217;s and jQuery</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/javascript-css-minification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mastering CSS, Part 1: Styling Design Elements &#124; CSS &#124; Smashing Magazine</title>
		<link>http://www.shawson.co.uk/codeblog/mastering-css-part-1-styling-design-elements-css-smashing-magazine/</link>
		<comments>http://www.shawson.co.uk/codeblog/mastering-css-part-1-styling-design-elements-css-smashing-magazine/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 13:02:33 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=325</guid>
		<description><![CDATA[Excellent set of links to various cool technique and common CSS problems and their solutions, including the one that always gets me- verical centering!
Mastering CSS, Part 1: Styling Design Elements &#124; CSS &#124; Smashing Magazine.


Related posts:New site launch- natashahampshire.co.uk
Flash backgrounds not showing in IE
HTML5 &#038; the Processing.js JavaScript library



Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/new-site-launch-natashahampshire-co-uk/' rel='bookmark' title='Permanent Link: New site launch- natashahampshire.co.uk'>New site launch- natashahampshire.co.uk</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/flash-backgrounds-not-showing-in-ie/' rel='bookmark' title='Permanent Link: Flash backgrounds not showing in IE'>Flash backgrounds not showing in IE</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/great-site-with-loads-of-javascript-and-css-resources/' rel='bookmark' title='Permanent Link: HTML5 &#038; the Processing.js JavaScript library'>HTML5 &#038; the Processing.js JavaScript library</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Excellent set of links to various cool technique and common CSS problems and their solutions, including the one that always gets me- verical centering!</p>
<p><a href="http://www.smashingmagazine.com/2009/08/03/mastering-css-styling-design-elements/">Mastering CSS, Part 1: Styling Design Elements | CSS | Smashing Magazine</a>.</p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/new-site-launch-natashahampshire-co-uk/' rel='bookmark' title='Permanent Link: New site launch- natashahampshire.co.uk'>New site launch- natashahampshire.co.uk</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/flash-backgrounds-not-showing-in-ie/' rel='bookmark' title='Permanent Link: Flash backgrounds not showing in IE'>Flash backgrounds not showing in IE</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/great-site-with-loads-of-javascript-and-css-resources/' rel='bookmark' title='Permanent Link: HTML5 &#038; the Processing.js JavaScript library'>HTML5 &#038; the Processing.js JavaScript library</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/mastering-css-part-1-styling-design-elements-css-smashing-magazine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Handy CSS Debugging Snippet</title>
		<link>http://www.shawson.co.uk/codeblog/a-handy-css-debugging-snippet/</link>
		<comments>http://www.shawson.co.uk/codeblog/a-handy-css-debugging-snippet/#comments</comments>
		<pubDate>Fri, 29 May 2009 09:21:23 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=188</guid>
		<description><![CDATA[Found a really handy bit of css for debugging from A Handy CSS Debugging Snippet.

* { outline: 2px dotted red }
 * * { outline: 2px dotted green }
* * * { outline: 2px dotted orange }
* * * * { outline: 2px dotted blue }
* * * * * { outline: 1px solid red [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Found a really handy bit of css for debugging from <a href="http://homepage.mac.com/chrispage/iblog/C42511381/E20060806095030/index.html">A Handy CSS Debugging Snippet</a>.</p>
<pre class="brush: css">
* { outline: 2px dotted red }
 * * { outline: 2px dotted green }
* * * { outline: 2px dotted orange }
* * * * { outline: 2px dotted blue }
* * * * * { outline: 1px solid red }
* * * * * * { outline: 1px solid green }
* * * * * * * { outline: 1px solid orange }
* * * * * * * * { outline: 1px solid blue }
</pre>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/a-handy-css-debugging-snippet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Code Highlighter</title>
		<link>http://www.shawson.co.uk/codeblog/google-code-highlighter/</link>
		<comments>http://www.shawson.co.uk/codeblog/google-code-highlighter/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 12:25:00 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[C#.net]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[VB.net]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/post.aspx?id=1a0049fa-b77b-430a-9c31-88c9252c84e4</guid>
		<description><![CDATA[You may have noticed that the little snippets of code I&#8217;ve been dropping into these post&#8217;s suddenly got a bit swankier looking.  This is down to a new javascript tool I found for use on blogs and the like, for highlighting code you post on your pages.
Basically you download the zip file- unzip it [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/runaway-sharepoint-2003-indexing/' rel='bookmark' title='Permanent Link: Runaway Sharepoint 2003 Indexing!'>Runaway Sharepoint 2003 Indexing!</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/flash-backgrounds-not-showing-in-ie/' rel='bookmark' title='Permanent Link: Flash backgrounds not showing in IE'>Flash backgrounds not showing in IE</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-font-api/' rel='bookmark' title='Permanent Link: Google Font API'>Google Font API</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>You may have noticed that the little snippets of code I&#8217;ve been dropping into these post&#8217;s suddenly got a bit swankier looking.  This is down to a new javascript tool I found for use on blogs and the like, for highlighting code you post on your pages.</p>
<p>Basically you download the zip file- unzip it and copy the javascripts and css files over, then add a few lines of code to the head of your page;</p>
<p><textarea name="code" class="html"></p>
<link type="text/css" rel="stylesheet" href="css/SyntaxHighlighter.css"></link>
<script language="javascript" src="js/shCore.js"></script><br />
<script language="javascript" src="js/shBrushCSharp.js"></script><br />
<script language="javascript" src="js/shBrushXml.js"></script><br />
<script language="javascript">
dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
</script><br />
</textarea></p>
<p>You then put your code in-between &gt;pre&lt; tags and set a name attribute to &#8220;code&#8221; and set the class to whatever syntax you have- it has support for a whole bunch of languages including c#, vb, php, javascript, css, sql and a whole bunch of others.  You can grab this plug-in from <a href="http://code.google.com/p/syntaxhighlighter/" title="Google syntax highlighter">here</a></p>
<p>The install was easy- but a couple of bits did catch me out- the code sample above was the example they give you in the install page.  So I blindly copied over this code to the head of my blog, and copied all the files from the zip file over to my sites js and css folders.  I found that html highlighting worked fine and so did c# but vb and sql weren&#8217;t happening&#8230; It eventually clicked that you need to add the references to the additional syntax types you need as the example only has a line for the CS and XML/HTML &#8220;brush&#8221; libraries.  So I popped those lines in and it worked fine. </p>
<p>The other problem that I had, and indeed still have until I get home to actually edit the code, is compatibility with <a href="http://tinymce.moxiecode.com/">TinyMCE</a> which is the editor used by default in BlogEngine.  I found a couple of articles which might help with this but won&#8217;t know till tonight;</p>
<ul>
<li><a href="http://weblogs.asp.net/nawaf/archive/2008/04/06/syntaxhighlighter-plugin-for-tinymce-wysiwyg-editor.aspx">TinyMCE Code highlighter Plugin to work with Google Syntaxt Highlighter</a></li>
<li><a href="http://blog.daemon.com.au/go/blog-post/getting-tinymce-to-play-nice-with-dp-syntaxhighlighter">TinyMCE configuration settings to help everything get along a little better</a></li>
</ul>
<p>As mentioned on the Wiki pages there is also the issue that adding a name value to a pre tag, isn&#8217;t valid xhtml.</p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/runaway-sharepoint-2003-indexing/' rel='bookmark' title='Permanent Link: Runaway Sharepoint 2003 Indexing!'>Runaway Sharepoint 2003 Indexing!</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/flash-backgrounds-not-showing-in-ie/' rel='bookmark' title='Permanent Link: Flash backgrounds not showing in IE'>Flash backgrounds not showing in IE</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-font-api/' rel='bookmark' title='Permanent Link: Google Font API'>Google Font API</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/google-code-highlighter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cool typography tool &amp; CSS Links</title>
		<link>http://www.shawson.co.uk/codeblog/cool-typography-tool-css-links/</link>
		<comments>http://www.shawson.co.uk/codeblog/cool-typography-tool-css-links/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 11:43:00 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/post.aspx?id=8cb3cac2-ce9f-41af-a2ba-c954dc56e41e</guid>
		<description><![CDATA[
Just found this site which creates beautifully laid out tag clouds from raw blocks of text or rss feeds ; Wordle
Spencer, over at youlove.us also showed me a really useful font matrix on the 24ways website, showing type face support across Windows and Mac platforms allowing you to expand which fonts you can confidently use [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='Permanent Link: CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-font-api/' rel='bookmark' title='Permanent Link: Google Font API'>Google Font API</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-45" title="Example output from the &quot;Wordle&quot; tag cloud application" src="http://www.shawson.co.uk/codeblog/wp-content/uploads/2009/04/tag_cloud.jpg" alt="Example output from the &quot;Wordle&quot; tag cloud application" /><br />
Just found this site which creates beautifully laid out tag clouds from raw blocks of text or rss feeds ; <a href="http://wordle.net/" target="_blank">Wordle</a></p>
<p>Spencer, over at <a href="http://youlove.us/" target="_blank">youlove.us</a> also showed me a really useful <a href="http://media.24ways.org/2007/17/fontmatrix.html" target="_blank">font matrix on the 24ways website</a>, showing type face support across Windows and Mac platforms allowing you to expand which fonts you can confidently use on websites without having to resort to creating graphics or break out <a href="http://wiki.novemberborn.net/sifr" target="_blank">sIFR</a>!</p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='Permanent Link: CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-font-api/' rel='bookmark' title='Permanent Link: Google Font API'>Google Font API</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/cool-typography-tool-css-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple domains to reduce site loading times</title>
		<link>http://www.shawson.co.uk/codeblog/multiple-domains-to-reduce-site-loading-times/</link>
		<comments>http://www.shawson.co.uk/codeblog/multiple-domains-to-reduce-site-loading-times/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 10:34:00 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/post.aspx?id=41f780ed-78e2-4e35-90a2-843d4cc40da1</guid>
		<description><![CDATA[
In yet another effort to increase loading times on inherently graphic heavy websites we stumbled across an article on sitepoint which details a limitation across all web browsers.&#160; The limitation, which is came from a recommendation made in the http standard, states that no more than 2 connections should be made to any one domain [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='Permanent Link: CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/new-site-launch-natashahampshire-co-uk/' rel='bookmark' title='Permanent Link: New site launch- natashahampshire.co.uk'>New site launch- natashahampshire.co.uk</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>
In yet another effort to increase loading times on inherently graphic heavy websites we stumbled across an <a href="http://www.sitepoint.com/blogs/2006/10/30/the-case-for-registering-multiple-domains/" target="_blank">article on sitepoint</a> which details a limitation across all web browsers.&nbsp; The limitation, which is came from a recommendation made in the http standard, states that no more than 2 connections should be made to any one domain name.&nbsp; So if your website has a bunch images, an html file and some css, your browser will only be able to download two of those at a time.&nbsp; This only really becomes a problem if you have lots of images to download- if you have two large files coming down at once, that&#39;s all your connections in use, so everything else will have to wait.
</p>
<p>
You can get round this by setting up a bunch of sub-domains, pointing to your site root, in exactly the same was as the www DNS record- just add these as additional host headers in IIS- we&#39;ve got images.domain.co.uk, styles.domain.co.uk, etc etc as well as the standard www.domain.co.uk, then you just set your image tags to grab all your images as normal, but substitute the www&#39;s for &quot;images&quot;- like wise with your css- set your link tags to reference your css at styles.domain.co.u/css/screen.cssfor example.</p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='Permanent Link: CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/new-site-launch-natashahampshire-co-uk/' rel='bookmark' title='Permanent Link: New site launch- natashahampshire.co.uk'>New site launch- natashahampshire.co.uk</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/multiple-domains-to-reduce-site-loading-times/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Sprites and a flickering problem in IE6</title>
		<link>http://www.shawson.co.uk/codeblog/css-sprites-and-a-flickering-problem-in-ie6/</link>
		<comments>http://www.shawson.co.uk/codeblog/css-sprites-and-a-flickering-problem-in-ie6/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 08:23:00 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/post.aspx?id=88b33576-f566-4e2a-818f-e5a3ca8ecbf3</guid>
		<description><![CDATA[Working for a large publishering group who, among other things, have a large section dedicated to the sale childrens books, we have a lot of websites with really graphically heavy designs.  Specifically the designers will often put in navigation elements using non standard fonts, which they insist must be used as-is leaving us with only [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/cool-typography-tool-css-links/' rel='bookmark' title='Permanent Link: Cool typography tool &#038; CSS Links'>Cool typography tool &#038; CSS Links</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/aspnet-nested-listview-controls-with-all-edit-functionality-working/' rel='bookmark' title='Permanent Link: Asp.net nested ListView control&#8217;s, with edit functionality- example'>Asp.net nested ListView control&#8217;s, with edit functionality- example</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/multiple-domains-to-reduce-site-loading-times/' rel='bookmark' title='Permanent Link: Multiple domains to reduce site loading times'>Multiple domains to reduce site loading times</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Working for a large publishering group who, among other things, have a large section dedicated to the sale childrens books, we have a lot of websites with really graphically heavy designs.  Specifically the designers will often put in navigation elements using non standard fonts, which they insist must be used as-is leaving us with only a couple of options;</p>
<ul>
<li><a href="http://wiki.novemberborn.net/sifr/" target="_blank"><strong>sIFR<br />
</strong></a>This is a javascript/flash solution which allows you to use any font you want on a website.  It&#8217;s very simple to use- you simply add the javascript include to the top of your page, then add the sIFR css classes to the elements you want to be processed by sIFR.  You will also need to open the attached fla file and change the font in there and republish the SWF file.  At run time, the javascript then finds any elements using these classes, grabs their content, then substitutes it with a small flash SWF file, showing your title in your chosen font.  <strong></strong></p>
<p><strong> </strong>This is best used for page headings rather than large blocks of text (due to the processor time required to perform the conversion in real time) and, in my experience, can lead to some CSS based head aches (adding padding or margins where you dont expect it, or generally pushing other elements around) if you have a particuly tight design.</li>
<li><strong>CSS Sprites</strong><br />
<img class="size-full wp-image-43 alignright" title="Example CSS Sprite image showing both a buttons normal and over " src="http://www.shawson.co.uk/codeblog/wp-content/uploads/2009/04/button_sprites.gif" alt="Example CSS Sprite image showing both a buttons normal and over states" /></p>
<p>This solution isn&#8217;t as nice as sIFR, as you are still having to create a graphic for every button, and a graphic for every over state etc.  However with Sprites, you dramatically reduce the download times but putting all your button graphics and all their over states in a single image, and adjusting the offset of which part of the image you see on each button, using CSS.  An example sprite with just a single button can be seen in the image on the right.</p>
<p>The benefits to this include significantly reduced download times as you don&#8217;t have a individual set of headers and footers for each of the individual images- you&#8217;re just downloading the one graphic.  This also eliminated the need for pre-loaders (which never seem to make much of a difference anyway!) because as soon as the graphic is loaded, you then have all the graphics for your navigation, and their over state&#8217;s in memory.</p>
<p>So for each button on the site you set the same single image file, but when you set the background image, you also set an offset like so;</p>
<pre class="brush: css">
#leftNav #btnHome a {
	background-image:url(/graphics/leftnav_sprite.gif);
	background-position:0px 0px;
	}
	#leftNav #btnHome a:hover {
	background-position:0px -26px;
	}
</pre>
</li>
</ul>
<p><img class="size-full wp-image-44 alignright" title="IIS 6 Dialogue, allowing you to add Custom HTTP Headers" src="http://www.shawson.co.uk/codeblog/wp-content/uploads/2009/04/iis_sprites.png" alt="IIS 6 Dialogue, allowing you to add Custom HTTP Headers" /></p>
<p>We went with the CSS Sprites solution in the end which went in very easily and immidiatly worked under firefox.  We did however see issues under IE6- as we roller over the buttons there seemed to be a lag before they actually redrew the normal images, as though it was downloading the graphic again; which apparently is exactly what was happening.  After a bit of googling around we found <a title="IE6 background flicker solution" href="http://blog.klustered.com/2008/04/08/ie6-background-flicker/" target="_blank">this article</a> by <a href="http://blog.klustered.com/" target="_blank">Andrew Fledderjohann</a> which had the solution we needed (as well as a few other fixes for apache etc)&#8211; a simple addition to the headers supplied by IIS when hosting the site.  In the properties for the site in IIS, add a new Custom HTTP Header called Cache-Control and set the value to</p>
<pre class="brush: plain">
post-check=3600,pre-check=43200
</pre>
<p>This started working instantly for us totally eliminating the flicker.  You can see the results of this working up on <a href="http://www.franklinwatts.co.uk/" target="_blank">www.franklinwatts.co.uk</a></p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/cool-typography-tool-css-links/' rel='bookmark' title='Permanent Link: Cool typography tool &#038; CSS Links'>Cool typography tool &#038; CSS Links</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/aspnet-nested-listview-controls-with-all-edit-functionality-working/' rel='bookmark' title='Permanent Link: Asp.net nested ListView control&#8217;s, with edit functionality- example'>Asp.net nested ListView control&#8217;s, with edit functionality- example</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/multiple-domains-to-reduce-site-loading-times/' rel='bookmark' title='Permanent Link: Multiple domains to reduce site loading times'>Multiple domains to reduce site loading times</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/css-sprites-and-a-flickering-problem-in-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
