<?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://codeblog.shawson.co.uk/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://codeblog.shawson.co.uk</link>
	<description>development notes for my failing memory</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:00:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>New Adobe HTML5 Animation tool &#8220;Edge&#8221;- free tech preview</title>
		<link>http://codeblog.shawson.co.uk/new-adobe-html5-animation-tool-free-tech-preview/</link>
		<comments>http://codeblog.shawson.co.uk/new-adobe-html5-animation-tool-free-tech-preview/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 11:48:52 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://codeblog.shawson.co.uk/?p=1121</guid>
		<description><![CDATA[A real nail in the coffin for Flash, as it&#8217;s own parents (Adobe) release a free tech demo version of Edge- A new editor that lets you make flash style animations&#8211; without Flash! Instead the animations are scripted using standards html5, JavaScript and CSS3. Having been hand coding stuff like this over the past year [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/html5-audio-and-video-media-tags-how-do-you-know-when-the-datas-loaded-and-how-to-play-multiple-instances-of-the-same-sample-at-the-same-time/' rel='bookmark' title='HTML5 Audio and Video (Media) Tags &#8211; How do you know when the data&#8217;s loaded? And how to play multiple instances of the same sample at the same time'>HTML5 Audio and Video (Media) Tags &#8211; How do you know when the data&#8217;s loaded? And how to play multiple instances of the same sample at the same time</a></li>
<li><a href='http://codeblog.shawson.co.uk/backwards-compatible-embedded-html-5-video/' rel='bookmark' title='Backwards compatible Embedded HTML 5 Video'>Backwards compatible Embedded HTML 5 Video</a></li>
<li><a href='http://codeblog.shawson.co.uk/couple-of-interesting-news-items-today/' rel='bookmark' title='Couple of interesting news items today'>Couple of interesting news items today</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>A real nail in the coffin for Flash, as it&#8217;s own parents (Adobe) release a free tech demo version of Edge- A new editor that lets you make flash style animations&#8211; without Flash!  Instead the animations are scripted using standards html5, JavaScript and CSS3.  Having been hand coding stuff like this over the past year (for 8week game and the like) I&#8217;m interested to see what kind of code this tool actually spits out!  Check it out herel; <a href="http://t.co/I46QFYm">http://t.co/I46QFYm</a></p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/html5-audio-and-video-media-tags-how-do-you-know-when-the-datas-loaded-and-how-to-play-multiple-instances-of-the-same-sample-at-the-same-time/' rel='bookmark' title='HTML5 Audio and Video (Media) Tags &#8211; How do you know when the data&#8217;s loaded? And how to play multiple instances of the same sample at the same time'>HTML5 Audio and Video (Media) Tags &#8211; How do you know when the data&#8217;s loaded? And how to play multiple instances of the same sample at the same time</a></li>
<li><a href='http://codeblog.shawson.co.uk/backwards-compatible-embedded-html-5-video/' rel='bookmark' title='Backwards compatible Embedded HTML 5 Video'>Backwards compatible Embedded HTML 5 Video</a></li>
<li><a href='http://codeblog.shawson.co.uk/couple-of-interesting-news-items-today/' rel='bookmark' title='Couple of interesting news items today'>Couple of interesting news items today</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/new-adobe-html5-animation-tool-free-tech-preview/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Overlapping arrow style menu, and CSS sprite sheets.</title>
		<link>http://codeblog.shawson.co.uk/overlapping-arrow-style-menu-and-css-sprite-sheets/</link>
		<comments>http://codeblog.shawson.co.uk/overlapping-arrow-style-menu-and-css-sprite-sheets/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 21:24:39 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://codeblog.shawson.co.uk/?p=1116</guid>
		<description><![CDATA[Bit of a weird post I guess&#8230; I was explaining to a friend how to implement a design they had in html/css and nocked together a reeeeally basic example, and figured I would post it incase it&#8217;s of any use to anyone else starting out in html/css. It&#8217;s a basic navigation bar where each button [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://codeblog.shawson.co.uk/google-code-highlighter/' rel='bookmark' title='Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://codeblog.shawson.co.uk/multiple-domains-to-reduce-site-loading-times/' rel='bookmark' title='Multiple domains to reduce site loading times'>Multiple domains to reduce site loading times</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Bit of a weird post I guess&#8230; I was explaining to a friend how to implement a design they had in html/css and nocked together a reeeeally basic example, and figured I would post it incase it&#8217;s of any use to anyone else starting out in html/css. It&#8217;s a basic navigation bar where each button is shaped like an arrow, so the buttons all kind of overlap.  There is an icon in each, which changes on mouse over, along with the background image of the button.  Click the link below and check out the source- the sprite sheet can be viewed here <a href="http://codeblog.shawson.co.uk/storage/arrow-nav-bar-sprite-sheet/Sprite-sheet.png">http://codeblog.shawson.co.uk/storage/arrow-nav-bar-sprite-sheet/Sprite-sheet.png</a></p>
<p>The main example is here;<br />
<a href="http://codeblog.shawson.co.uk/storage/arrow-nav-bar-sprite-sheet/">http://codeblog.shawson.co.uk/storage/arrow-nav-bar-sprite-sheet/</a></p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://codeblog.shawson.co.uk/google-code-highlighter/' rel='bookmark' title='Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://codeblog.shawson.co.uk/multiple-domains-to-reduce-site-loading-times/' rel='bookmark' title='Multiple domains to reduce site loading times'>Multiple domains to reduce site loading times</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/overlapping-arrow-style-menu-and-css-sprite-sheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding minification and obfuscation of your Javascript and CSS to your ASP.net build process using Yahoo YUI Compressor</title>
		<link>http://codeblog.shawson.co.uk/asp-net-build-step-to-minify-and-obfuscate-your-sites-javascript-and-css/</link>
		<comments>http://codeblog.shawson.co.uk/asp-net-build-step-to-minify-and-obfuscate-your-sites-javascript-and-css/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 08:00:29 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[C#.net]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://codeblog.shawson.co.uk/?p=1104</guid>
		<description><![CDATA[I&#8217;ve just finished integrating Yahoo&#8217;s YUI Compressor into the MSBuild process for a new web probject I&#8217;m working on, and I thought I would document the process as there doesn;t seem to be a start to finish guide about anywhere. To start with, let me just explain the structure I use for new Solutions; C:\_Dev\MyNewWebsite\ [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/entity-framework-the-data-reader-is-incompatible-with-the-specified-complex-type/' rel='bookmark' title='Entity Framework &#8220;The data reader is incompatible with the specified complex type.&#8221;'>Entity Framework &#8220;The data reader is incompatible with the specified complex type.&#8221;</a></li>
<li><a href='http://codeblog.shawson.co.uk/javascript-css-minification/' rel='bookmark' title='Javascript &amp; CSS Minification'>Javascript &#038; CSS Minification</a></li>
<li><a href='http://codeblog.shawson.co.uk/asp-net-update-panels-and-jquery/' rel='bookmark' title='ASP.net update panel&#8217;s and jQuery'>ASP.net update panel&#8217;s and jQuery</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished integrating Yahoo&#8217;s YUI Compressor into the MSBuild process for a new web probject I&#8217;m working on, and I thought I would document the process as there doesn;t seem to be a start to finish guide about anywhere.</p>
<p>To start with, let me just explain the structure I use for new Solutions;</p>
<pre>
C:\_Dev\MyNewWebsite\
C:\_Dev\MyNewWebsite\Artwork\
C:\_Dev\MyNewWebsite\BuildTools\
C:\_Dev\MyNewWebsite\Docs\
C:\_Dev\MyNewWebsite\Source\
C:\_Dev\MyNewWebsite\Source\MyNewWebsite.sln
C:\_Dev\MyNewWebsite\Source\MyNewWebsite.Web\
C:\_Dev\MyNewWebsite\Source\MyNewWebsite.Web\Controls\
C:\_Dev\MyNewWebsite\Source\MyNewWebsite.Web\Images\
C:\_Dev\MyNewWebsite\Source\MyNewWebsite.Web\Scripts\
C:\_Dev\MyNewWebsite\Source\MyNewWebsite.Web\Services\
C:\_Dev\MyNewWebsite\Source\MyNewWebsite.Web\Styles\
C:\_Dev\MyNewWebsite\Source\MyNewWebsite.Web\MyNewWebsiteWeb.csproj
C:\_Dev\MyNewWebsite\Source\MyNewWebsite.Entities\
C:\_Dev\MyNewWebsite\Source\MyNewWebsite.Entities\MyNewWebsiteEntities.csproj
C:\_Dev\MyNewWebsite\Source\MyNewWebsite.Interfaces\
C:\_Dev\MyNewWebsite\Source\MyNewWebsite.Interfaces\MyNewWebsiteInterfaces.csproj
C:\_Dev\MyNewWebsite\ThirdParty\
</pre>
<p>Firstly, download the <a href="http://yuicompressor.codeplex.com/">dot net port of the YUI compressor from codeplex</a>.  I then extracted this into a new folder in the BuildTools folder. (there should be 2 dll files and one txt licence file.)</p>
<p>I then created a new MSBuild file called build-minify.xml, in the MyNewWebsite.Web project folder.  That file looks like this;</p>
<pre class="brush: xml">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- http://yuicompressor.codeplex.com/wikipage?title=Sample%20MSBuild.xml%20File&amp;amp;amp;amp;amp;amp;ProjectName=yuicompressor --&gt;
&lt;Project DefaultTargets=&quot;Build&quot; xmlns=&quot;http://schemas.microsoft.com/developer/msbuild/2003&quot;&gt;
  &lt;UsingTask
         TaskName=&quot;CompressorTask&quot;
         AssemblyFile=&quot;..\..\BuildTools\Yahoo.Yui.Compressor-v1.5.0.0\Yahoo.Yui.Compressor.dll&quot; /&gt;

  &lt;ItemGroup&gt;
    &lt;CssFiles Include=&quot;$(SourceLocation)Styles\Fonts.css&quot;/&gt;
    &lt;CssFiles Include=&quot;$(SourceLocation)Styles\Site.css&quot;/&gt;

    &lt;CssIE Include=&quot;$(SourceLocation)Styles\IE.css&quot;/&gt;
    &lt;CssIE6 Include=&quot;$(SourceLocation)Styles\IE6.css&quot;/&gt;

    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\jquery-1.6.1.min.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\jquery-ui-1.8.14.custom.min.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\json2.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\jqModal-r14.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\jquery.tipsy.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\jquery.scrollTo-1.4.2.min.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\jquery.localscroll-1.2.7.min.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\chinook-alert.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\chinook-validation.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\chinook-rollovers.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\chinook-custom-accordion.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\chinook-vehicle-lookup.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\chinook-sandbox.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\chinook-finance-calculator.js&quot; /&gt;
    &lt;JsAll Include=&quot;$(SourceLocation)Scripts\chinook-apply-now.js&quot; /&gt;

  &lt;/ItemGroup&gt;

  &lt;Target Name=&quot;Minimize&quot;&gt;
    &lt;CompressorTask
              CssFiles=&quot;@(CssFiles)&quot;
              DeleteCssFiles=&quot;false&quot;
              CssOutputFile=&quot;Styles/Site.rel.css&quot;
              CssCompressionType=&quot;YuiStockCompression&quot;
              DisableOptimizations=&quot;Nope&quot;
              EncodingType=&quot;Default&quot;
              LineBreakPosition=&quot;-1&quot;
              LoggingType=&quot;ALittleBit&quot;
              ThreadCulture=&quot;en-gb&quot;
              IsEvalIgnored=&quot;false&quot;
            /&gt;

    &lt;CompressorTask
              CssFiles=&quot;@(CssIE)&quot;
              DeleteCssFiles=&quot;false&quot;
              CssOutputFile=&quot;Styles/IE.rel.css&quot;
              CssCompressionType=&quot;YuiStockCompression&quot;
              DisableOptimizations=&quot;Nope&quot;
              EncodingType=&quot;Default&quot;
              LineBreakPosition=&quot;-1&quot;
              LoggingType=&quot;ALittleBit&quot;
              ThreadCulture=&quot;en-gb&quot;
              IsEvalIgnored=&quot;false&quot;
            /&gt;

    &lt;CompressorTask
              CssFiles=&quot;@(CssIE6)&quot;
              DeleteCssFiles=&quot;false&quot;
              CssOutputFile=&quot;Styles/IE6.rel.css&quot;
              CssCompressionType=&quot;YuiStockCompression&quot;
              DisableOptimizations=&quot;Nope&quot;
              EncodingType=&quot;Default&quot;
              LineBreakPosition=&quot;-1&quot;
              LoggingType=&quot;ALittleBit&quot;
              ThreadCulture=&quot;en-gb&quot;
              IsEvalIgnored=&quot;false&quot;
            /&gt;

    &lt;CompressorTask
      JavaScriptFiles=&quot;@(JsAll)&quot;
      ObfuscateJavaScript=&quot;true&quot;
      PreserveAllSemicolons=&quot;true&quot;
      DisableOptimizations=&quot;false&quot;
      EncodingType=&quot;Default&quot;
      DeleteJavaScriptFiles=&quot;false&quot;
      LineBreakPosition=&quot;-1&quot;
      JavaScriptOutputFile=&quot;Scripts/chinook.rel.js&quot;
      LoggingType=&quot;ALittleBit&quot;
      ThreadCulture=&quot;en-gb&quot;
      IsEvalIgnored=&quot;false&quot;
		/&gt;
  &lt;/Target&gt;
&lt;/Project&gt;
</pre>
<p>You can create whatever ItemGroups you&#8217;d like- then just create a compressor task for each.  For a rundown of the settings, check out the link in the comment at the top of the XML there.  In the above file I had decided to compress all of my Javascript into a single file called chinook.rel.js, and my fonts and site css file rolled into one file, keeping the ie6 css separate, but still minifying it down.</p>
<p>The next step is to add it to the normal build.  I opened the solution in Visual Studio, right clicked my web project and selected properties.  Go to &#8220;Build Events&#8221; and add the following post-build event;</p>
<pre>
$(MSBuildBinPath)\msbuild.exe  $(ProjectDir)build-minify.xml /target:Minimize
</pre>
<p>Now you can test it out by building your project.  The new minified files are dumped out, in my case to the Scripts folder.  Now that the files are there, I need a way of telling my release version of the website to use these instead of the raw, human-readable versions; but I still want to continue using the human-readable versions for development.</p>
<p>To achieve this I use pre-processor directives.  These are most commonly seen in the c# code behind files, but can also be used in the aspx files.  I added the following lines at the bottom of my master page;</p>
<pre class="brush: html">
    &lt;% #if (!DEBUG) %&gt;
    &lt;script src=&quot;Scripts/chinook.rel.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;% #else %&gt;
    &lt;script src=&quot;Scripts/jquery-1.6.1.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;Scripts/jqModal-r14.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;Scripts/chinook-alert.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;Scripts/jquery-ui-1.8.14.custom.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;Scripts/chinook-vehicle-lookup.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;Scripts/chinook-sandbox.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;Scripts/chinook-finance-calculator.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;Scripts/jquery.scrollTo-1.4.2.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;Scripts/jquery.localscroll-1.2.7.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;Scripts/jquery.tipsy.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;Scripts/json2.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;Scripts/chinook-validation.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;Scripts/chinook-apply-now.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;Scripts/chinook-rollovers.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;Scripts/chinook-custom-accordion.js&quot;&gt;&lt;/script&gt;
    &lt;% #endif %&gt;
</pre>
<p>So if the project is NOT running in debug mode, I import my full chinook.rel.js include which has everything already included, otherwise I manually include all the human readable, separate files.</p>
<p>And that&#8217;s pretty much it.  Make sure you thoroughly retest your site with your combined java script file, as sometimes minification can cause issues with some code.  </p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/entity-framework-the-data-reader-is-incompatible-with-the-specified-complex-type/' rel='bookmark' title='Entity Framework &#8220;The data reader is incompatible with the specified complex type.&#8221;'>Entity Framework &#8220;The data reader is incompatible with the specified complex type.&#8221;</a></li>
<li><a href='http://codeblog.shawson.co.uk/javascript-css-minification/' rel='bookmark' title='Javascript &amp; CSS Minification'>Javascript &#038; CSS Minification</a></li>
<li><a href='http://codeblog.shawson.co.uk/asp-net-update-panels-and-jquery/' rel='bookmark' title='ASP.net update panel&#8217;s and jQuery'>ASP.net update panel&#8217;s and jQuery</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/asp-net-build-step-to-minify-and-obfuscate-your-sites-javascript-and-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Transparent CSS Sprites &#8211; Smashing Magazine</title>
		<link>http://codeblog.shawson.co.uk/transparent-css-sprites-smashing-magazine/</link>
		<comments>http://codeblog.shawson.co.uk/transparent-css-sprites-smashing-magazine/#comments</comments>
		<pubDate>Sun, 31 Oct 2010 11:13:52 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=827</guid>
		<description><![CDATA[If you are familiar with CSS Sprites, you should be able to grasp this twist relativ via Transparent CSS Sprites &#8211; Smashing Magazine. Related posts:Mastering CSS, Part 1: Styling Design Elements &#124; CSS &#124; Smashing Magazine CSS Sprites and a flickering problem in IE6 Flash floating over the top of my div!


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mastering-css-part-1-styling-design-elements-css-smashing-magazine/' rel='bookmark' title='Mastering CSS, Part 1: Styling Design Elements | CSS | Smashing Magazine'>Mastering CSS, Part 1: Styling Design Elements | CSS | Smashing Magazine</a></li>
<li><a href='http://codeblog.shawson.co.uk/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://codeblog.shawson.co.uk/flash-floating-over-the-top-of-my-div/' rel='bookmark' title='Flash floating over the top of my div!'>Flash floating over the top of my div!</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>If you are familiar with CSS Sprites, you should be able to grasp this twist relativ</p>
<p>via <a href="http://www.smashingmagazine.com/2010/10/31/transparent-css-sprites/">Transparent CSS Sprites &#8211; Smashing Magazine</a>.</p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mastering-css-part-1-styling-design-elements-css-smashing-magazine/' rel='bookmark' title='Mastering CSS, Part 1: Styling Design Elements | CSS | Smashing Magazine'>Mastering CSS, Part 1: Styling Design Elements | CSS | Smashing Magazine</a></li>
<li><a href='http://codeblog.shawson.co.uk/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://codeblog.shawson.co.uk/flash-floating-over-the-top-of-my-div/' rel='bookmark' title='Flash floating over the top of my div!'>Flash floating over the top of my div!</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/transparent-css-sprites-smashing-magazine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Font API</title>
		<link>http://codeblog.shawson.co.uk/google-font-api/</link>
		<comments>http://codeblog.shawson.co.uk/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 fonts [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/google-code-highlighter/' rel='bookmark' title='Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://codeblog.shawson.co.uk/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://codeblog.shawson.co.uk/cool-typography-tool-css-links/' rel='bookmark' title='Cool typography tool &amp; 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://codeblog.shawson.co.uk/google-code-highlighter/' rel='bookmark' title='Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://codeblog.shawson.co.uk/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
<li><a href='http://codeblog.shawson.co.uk/cool-typography-tool-css-links/' rel='bookmark' title='Cool typography tool &amp; CSS Links'>Cool typography tool &#038; CSS Links</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/google-font-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 &amp; the Processing.js JavaScript library</title>
		<link>http://codeblog.shawson.co.uk/great-site-with-loads-of-javascript-and-css-resources/</link>
		<comments>http://codeblog.shawson.co.uk/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 [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/processingjs-box2d-physics/' rel='bookmark' title='Processingjs &amp; Box2d Physics!'>Processingjs &#038; Box2d Physics!</a></li>
<li><a href='http://codeblog.shawson.co.uk/great-html5-canvas-chrome-demo-site/' rel='bookmark' title='Great HTML5 Canvas/ Chrome Demo sites'>Great HTML5 Canvas/ Chrome Demo sites</a></li>
<li><a href='http://codeblog.shawson.co.uk/javascript-nintendo-emulator/' rel='bookmark' title='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://codeblog.shawson.co.uk/processingjs-box2d-physics/' rel='bookmark' title='Processingjs &amp; Box2d Physics!'>Processingjs &#038; Box2d Physics!</a></li>
<li><a href='http://codeblog.shawson.co.uk/great-html5-canvas-chrome-demo-site/' rel='bookmark' title='Great HTML5 Canvas/ Chrome Demo sites'>Great HTML5 Canvas/ Chrome Demo sites</a></li>
<li><a href='http://codeblog.shawson.co.uk/javascript-nintendo-emulator/' rel='bookmark' title='Javascript Nintendo Emulator!!'>Javascript Nintendo Emulator!!</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/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://codeblog.shawson.co.uk/new-site-launch-natashahampshire-co-uk/</link>
		<comments>http://codeblog.shawson.co.uk/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 [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/javascript-css-minification/' rel='bookmark' title='Javascript &amp; CSS Minification'>Javascript &#038; CSS Minification</a></li>
<li><a href='http://codeblog.shawson.co.uk/multiple-domains-to-reduce-site-loading-times/' rel='bookmark' title='Multiple domains to reduce site loading times'>Multiple domains to reduce site loading times</a></li>
<li><a href='http://codeblog.shawson.co.uk/jqueryui/' rel='bookmark' title='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://codeblog.shawson.co.uk/javascript-css-minification/' rel='bookmark' title='Javascript &amp; CSS Minification'>Javascript &#038; CSS Minification</a></li>
<li><a href='http://codeblog.shawson.co.uk/multiple-domains-to-reduce-site-loading-times/' rel='bookmark' title='Multiple domains to reduce site loading times'>Multiple domains to reduce site loading times</a></li>
<li><a href='http://codeblog.shawson.co.uk/jqueryui/' rel='bookmark' title='JQueryUI'>JQueryUI</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/new-site-launch-natashahampshire-co-uk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript &amp; CSS Minification</title>
		<link>http://codeblog.shawson.co.uk/javascript-css-minification/</link>
		<comments>http://codeblog.shawson.co.uk/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[Javascript]]></category>
		<category><![CDATA[jQuery]]></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 [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/asp-net-build-step-to-minify-and-obfuscate-your-sites-javascript-and-css/' rel='bookmark' title='Adding minification and obfuscation of your Javascript and CSS to your ASP.net build process using Yahoo YUI Compressor'>Adding minification and obfuscation of your Javascript and CSS to your ASP.net build process using Yahoo YUI Compressor</a></li>
<li><a href='http://codeblog.shawson.co.uk/google-code-highlighter/' rel='bookmark' title='Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://codeblog.shawson.co.uk/jquery-accordion-control-links-not-working/' rel='bookmark' title='JQuery Accordion Control links not working'>JQuery Accordion Control links not working</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://codeblog.shawson.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/asp-net-build-step-to-minify-and-obfuscate-your-sites-javascript-and-css/' rel='bookmark' title='Adding minification and obfuscation of your Javascript and CSS to your ASP.net build process using Yahoo YUI Compressor'>Adding minification and obfuscation of your Javascript and CSS to your ASP.net build process using Yahoo YUI Compressor</a></li>
<li><a href='http://codeblog.shawson.co.uk/google-code-highlighter/' rel='bookmark' title='Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://codeblog.shawson.co.uk/jquery-accordion-control-links-not-working/' rel='bookmark' title='JQuery Accordion Control links not working'>JQuery Accordion Control links not working</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/javascript-css-minification/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mastering CSS, Part 1: Styling Design Elements &#124; CSS &#124; Smashing Magazine</title>
		<link>http://codeblog.shawson.co.uk/mastering-css-part-1-styling-design-elements-css-smashing-magazine/</link>
		<comments>http://codeblog.shawson.co.uk/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:Transparent CSS Sprites &#8211; Smashing Magazine New site launch- natashahampshire.co.uk CSS Sprites and a flickering problem in IE6


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/transparent-css-sprites-smashing-magazine/' rel='bookmark' title='Transparent CSS Sprites &#8211; Smashing Magazine'>Transparent CSS Sprites &#8211; Smashing Magazine</a></li>
<li><a href='http://codeblog.shawson.co.uk/new-site-launch-natashahampshire-co-uk/' rel='bookmark' title='New site launch- natashahampshire.co.uk'>New site launch- natashahampshire.co.uk</a></li>
<li><a href='http://codeblog.shawson.co.uk/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</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://codeblog.shawson.co.uk/transparent-css-sprites-smashing-magazine/' rel='bookmark' title='Transparent CSS Sprites &#8211; Smashing Magazine'>Transparent CSS Sprites &#8211; Smashing Magazine</a></li>
<li><a href='http://codeblog.shawson.co.uk/new-site-launch-natashahampshire-co-uk/' rel='bookmark' title='New site launch- natashahampshire.co.uk'>New site launch- natashahampshire.co.uk</a></li>
<li><a href='http://codeblog.shawson.co.uk/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/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://codeblog.shawson.co.uk/a-handy-css-debugging-snippet/</link>
		<comments>http://codeblog.shawson.co.uk/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 } * * * * * { [...]


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://codeblog.shawson.co.uk/a-handy-css-debugging-snippet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

