<?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>Nick Cowie &#187; css and html</title>
	<atom:link href="http://nickcowie.com/category/css-and-html/feed/" rel="self" type="application/rss+xml" />
	<link>http://nickcowie.com</link>
	<description>Web standards, accessibility  and such like with a bias toward  Government web sites</description>
	<lastBuildDate>Fri, 20 Jan 2012 01:53:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Mashing it up</title>
		<link>http://nickcowie.com/2011/mashing-it-up/</link>
		<comments>http://nickcowie.com/2011/mashing-it-up/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 04:56:24 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[css and html]]></category>
		<category><![CDATA[Just geek]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[libraryhack]]></category>
		<category><![CDATA[streetview]]></category>
		<category><![CDATA[walibhack]]></category>

		<guid isPermaLink="false">http://nickcowie.com/?p=513</guid>
		<description><![CDATA[<h3>Krantz and Sheldon architectural images meets Google StreetView</h3>
<p>With LibraryHack and the State Library of WA <em>day of hack</em> approaching, I needed a demo, a quick look at the datasets that the State Library of WA made available. I settled on the Krantz and Sheldon architectural photographs. As this was a small set of photos, I did not have to search through a whole collection of 50,000 images looking for a suitable theme, as this dataset already had a theme, the work of Krantz and Sheldon in Perth in the 1960s and 1970s. Fortunately most had some basic geolocation data, such as addresses.</p>
<p>The original concept was to produce an animation, using CSS3, HTML5 and javascript, showing the Krantz and Sheldon photographs alongside the current Google Streetview.  I have not had the chance to animate the sequence yet &#8230;</p>]]></description>
			<content:encoded><![CDATA[<h2>Krantz and Sheldon architectural images meets Google StreetView</h2>
<p>With LibraryHack and the State Library of WA <em>day of hack</em> approaching, I needed a demo, a quick look at the datasets that the State Library of WA made available. I settled on the Krantz and Sheldon architectural photographs. As this was a small set of photos, I did not have to search through a whole collection of 50,000 images looking for a suitable theme, as this dataset already had a theme, the work of Krantz and Sheldon in Perth in the 1960s and 1970s. Fortunately most had some basic geolocation data, such as addresses.</p>
<p>The original concept was to produce an animation, using CSS3, HTML5 and javascript, showing the Krantz and Sheldon photographs alongside the current Google Streetview.  I have not had the chance to animate the sequence yet, so it currently manual.</p>
<p>The first problem was finding the right tool for the job. Fortunately a quick search turned up <a href="http://www.jaycodesign.co.nz/js/using-google-maps-to-show-a-streetview-of-a-house-based-on-an-address/">Using Google Maps to show a streetview of a house based on an address</a> by <a href="http://www.jaycodesign.co.nz">Jordan Clist</a>.</p>
<p>The javascript allows you to give it an address in and returns both a google map and street view image for most locations. I say most locations, because some locations will not return street view images for an address. Even though a street view does exist for that building, it just does match the address, like 16 Hensman Street, South Perth.</p>
<p>The next issue was while you could get a StreetView for an address, the image does not always suit your needs. A quick look at the javascript found 3 variables you could pass StreetView to change the angle, pitch and zoom. So the javascript was quickly modified to allow me to pass the heading, pitch and zoom variables to StreetView and return a image that more suited my needs.</p>
<p>The next process was the time consuming one. Pumping addresses into StreetView then manually adjust the heading, pitch and zoom to get the preferred view. I quickly found:</p>
<ul>
<li>not all addresses return a StreetView;</li>
<li>some addresses return great images of trees obscuring buildings;</li>
<li>you can get a StreetView from <em>corner … and …</em> and ;</li>
<li>often it was necessary to go up or down the street and adjust the heading to get a suitable image.</li>
</ul>
<p>Still it is far from perfect, it is almost impossible to replicate the original viewpoint of the Krantz and Sheldon photographs from StreetView. Not all photographs had addresses, and you could not get images of all building from StreetView. It would of been better to go take photos of all the building from the original viewpoint. Still if you want to see the current results, the <a href="http://nickcowie.com/xtras/demos.html">square version</a> for Safari, Chrome, Webkit, Opera and Firefox 3 and the <a href="http://nickcowie.com/xtras/democ.html">funky circular version</a> for Firefox 4 and IE9.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickcowie.com/2011/mashing-it-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overflow: hidden and border-radius</title>
		<link>http://nickcowie.com/2011/overflow-hidden-and-border-radius/</link>
		<comments>http://nickcowie.com/2011/overflow-hidden-and-border-radius/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 08:23:50 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[css and html]]></category>
		<category><![CDATA[border-radius]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[overflow: hidden]]></category>

		<guid isPermaLink="false">http://nickcowie.com/?p=506</guid>
		<description><![CDATA[<h2>aka a square peg in a round hole</h2>
<p>When I was creating the <a href="http://data.gov.au/dataset/krantz-sheldon-architectural-images/">Krantz and Sheldon architectural photographs</a> meets Google Streetview <a href="http://nickcowie.com/xtras/demos.html">mashup</a>, (more posts to follow on that). I decided that as the Krantz and Sheldon archive was from the sixties that instead of rectangular images, the images should be circular, which should of been a piece of cake using border-radius CSS3 property. As the dimensions &#8230;</p>]]></description>
			<content:encoded><![CDATA[<h2>aka a square peg in a round hole</h2>
<p><a href="http://nickcowie.com/wp-content/uploads/2011/04/chromeoncircle800s.jpg"><img src="http://nickcowie.com/wp-content/uploads/2011/04/chromeoncircles400.jpg" alt="Div with image and Overflow: hidden and border radius in Chrome" title="Overflow hidden" width="400" height="240" class="alignnone size-full wp-image-507" /></a></p>
<p>When I was creating the <a href="http://data.gov.au/dataset/krantz-sheldon-architectural-images/">Krantz and Sheldon architectural photographs</a> meets Google Streetview <a href="http://nickcowie.com/xtras/demos.html">mashup</a>, (more posts to follow on that). I decided that as the Krantz and Sheldon archive was from the sixties that instead of rectangular images, the images should be circular, which should of been a piece of cake using border-radius CSS3 property. As the dimensions  of each photograph was different, the only way to achieve this was to make sure each image filled a fixed size containing div. The easiest way to do this was to fix the width of each photograph, then give it a negative left margin so it was centred. Then apply overflow: hidden to the div so only portion of the photograph would be visible. I then applied border-radius to the containing div and perfectly circular images in my the browser I was testing in, Firefox 4.</p>
<p>Off course the world is not perfect, on Library Hack day, I had to use another computer and Chrome to show the concept to crowd. The circular images where replaced with square images, even though the containing divs had a circular drop-shadow. Webkit browsers, Opera and Firefox 3 can not deal with a border radius applied to contents of an element with overflow: hidden. Instead you the overflow is only hidden outside the rectangular box.</p>
<p>So nice concept, but flawed implementation until the browsers catch up. The <a href="http://nickcowie.com/xtras/democ.html">circular version</a> for those using Firefox4 or IE9, of wish to see round shadows from square obects in Safari, Chrome and Opera.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickcowie.com/2011/overflow-hidden-and-border-radius/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5Boilerplate</title>
		<link>http://nickcowie.com/2010/html5boilerplate/</link>
		<comments>http://nickcowie.com/2010/html5boilerplate/#comments</comments>
		<pubDate>Sun, 15 Aug 2010 10:32:11 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[css and html]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://nickcowie.com/?p=499</guid>
		<description><![CDATA[<p>Sometimes you look at other people's code and go <em>why didn't I think of that</em>. Which is exactly what I thought when I saw <a href="paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/">Paul Irish's elgant solution to the old conditional comments vs CSS hacks dilema</a>. The <a href="http://html5boilerplate.com/">HTML5Boilerplate</a> by <a href="http://paulirish.com/">Paul Irish</a> and <a href="http://nimbupani.com/">Divya Manian</a> is a collection of elgant solutions to common problems in web coding.</p>
<p>Boilerplate is not a template or framework, just a set of tools to get that site developed quickly. I know I will be making use of most of it in the near future.</p>

]]></description>
			<content:encoded><![CDATA[<p>Sometimes you look at other people’s code and go <em>why didn’t I think of that</em>. Which is exactly what I thought when I saw <a href="paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/">Paul Irish’s elgant solution to the old conditional comments vs CSS hacks dilema</a>. The <a href="http://html5boilerplate.com/">HTML5Boilerplate</a> by <a href="http://paulirish.com/">Paul Irish</a> and <a href="http://nimbupani.com/">Divya Manian</a> is a collection of elgant solutions to common problems in web coding.</p>
<p>Boilerplate is not a template or framework, just a set of tools to get that site developed quickly. I know I will be making use of most of it in the near future.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickcowie.com/2010/html5boilerplate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RGBa backgrounds in IE</title>
		<link>http://nickcowie.com/2009/rgba-backgrounds-in-ie/</link>
		<comments>http://nickcowie.com/2009/rgba-backgrounds-in-ie/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 04:54:41 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[css and html]]></category>
		<category><![CDATA[progressive enhancement]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[RGBA]]></category>

		<guid isPermaLink="false">http://nickcowie.com/?p=471</guid>
		<description><![CDATA[<p>RGBa is the new black, with support in most modern Safari 3, Firefox 3 and Opera 10, you can have semi transparent elements.  Only there is no support currently in IE for RGBa.</p>
<p>However, you can easily fake it for backgrounds of block elements in IE with 
<code>filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#aaRRBBGG', EndColorStr='#aaRRBBGG);</code> 
The filter gradient places a alpha channel colour gradient over the background. So as long the background is transparent, the start and end colours the same and the alpha (aa) channel a value greater than 0 (fully transparent) and FF (fully opaque), you get a block element in IE with a RGBa background. You can see an  example of <a href="http://nickcowie.com/proge/rgba-ie.html">RGBa in action in IE</a> &#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>RGBa is the new black, with support in most modern Safari 3, Firefox 3 and Opera 10, you can have semi transparent elements.  Only there is no support currently in IE for RGBa.</p>
<p>However, you can easily fake it for backgrounds of block elements in IE with<br />
<code>filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#aaRRBBGG', EndColorStr='#aaRRBBGG);</code><br />
The filter gradient places a alpha channel colour gradient over the background. So as long the background is transparent, the start and end colours the same and the alpha (aa) channel a value greater than 0 (fully transparent) and FF (fully opaque), you get a block element in IE with a RGBa background. You can see an  example of <a href="http://nickcowie.com/proge/rgba-ie.html">RGBa in action in IE</a></p>
<p>The simplest way is including in your CSS<br />
<code>background: transparent ;<br />
background: rgba(255,0,0,0.5) ;<br />
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#88ff0000', EndColorStr='#88ff0000'); </code></p>
<p>Which is clean and simple, even it does deliver you invalid CSS. There are two problems,  if a browser does not support RGBa and is not IE, (eg FF2) the block element background will be transparent. I do not think that is a major issue right now. There are a handful of browsers outside IE in use that do not support RGBa. My main concern is future proofing, the next major version of IE (the beta is due within a year) will support RGBa (as well as HTML5 and some CSS3 according to sources) and as usual will maintain backwards compatibility with earlier versions of IE. So you will get a semi transparent background colour overlaid with a semi transparent gradient.</p>
<p>The solution, is to provide a stylesheet to all browsers and an extra stylesheet to IE8 and below with <a href="http://nickcowie.com/2005/conditional-comments/">conditional comments</a>. So your CSS will have:<br />
<code>background: fallback color RGB or hex ;<br />
/* background colour for browsers that are not IE that do not understand RGBa */<br />
background: rgba(R,G,B,a) ;</code><br />
Your HTML will include (note don’t try and cut and paste from here as grab <a href="http://nickcowie.com/proge/ie8cc.txt">the text file</a> instead):<br />
<code>&lt;!--[if lt IE 8]&gt;<br />
&lt;link rel="stylesheet" type="text/css" href="/xtras/ieonly.css" media="screen" /&gt;<br />
&lt;![endif]--&gt;</code><br />
And ieonly.css file include:<br />
<code>background: transparent ;<br />
/* needed to clear the background colour */<br />
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#88ff0000', EndColorStr='#88ff0000'); </code></p>
<p>If you don’t believe me and do not have IE6, here is <a href="http://nickcowie.com/proge/ie6rgba.png">the screenshot</a>. And I was not the first one to suggest this method for implementing RGBa in IE, <a href="http://www.hedgerwow.com/360/dhtml/rgba/demo.php">Hedger Wang</a> did some time ago, and even suggested using canvas to provide the transparent background to FF2. I only found his example while finalising this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickcowie.com/2009/rgba-backgrounds-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why use CSS Zen Garden for CSS3 demo</title>
		<link>http://nickcowie.com/2009/why-use-css-zen-garden-for-css3-demo/</link>
		<comments>http://nickcowie.com/2009/why-use-css-zen-garden-for-css3-demo/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 05:18:29 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[css and html]]></category>
		<category><![CDATA[Just geek]]></category>
		<category><![CDATA[presentations]]></category>
		<category><![CDATA[progressive enhancement]]></category>
		<category><![CDATA[css zen garden]]></category>
		<category><![CDATA[css3]]></category>

		<guid isPermaLink="false">http://nickcowie.com/?p=461</guid>
		<description><![CDATA[<p>For those who have not seen my Edge of the Web <a href="http://nickcowie.com/eotw/">CSS3 demonstration</a> I used the <a href="http://csszengarden.com">CSS Zen Garden</a> HTML. Why, because I wanted to use somebody else's HTML, mainly because I wanted to show it works with any HTML and that most people would be familiar with the site.</p>
<p>I will not submit it, because Dave has not accepted any new submissions almost two year, my demo is far from the visual standard of most other design and I broke one <strong>major rule</strong> the CSS does not validate.</p>]]></description>
			<content:encoded><![CDATA[<p>For those who have not seen my Edge of the Web <a href="http://nickcowie.com/eotw/">CSS3 demonstration</a> I used the <a href="http://csszengarden.com">CSS Zen Garden</a> HTML. Why, because I wanted to use somebody else’s HTML, mainly because I wanted to show it works with any HTML and that most people would be familiar with the site.</p>
<p>I will not submit it, because Dave has not accepted any new submissions almost two year, my demo is far from the visual standard of most other design and I broke one <strong>major rule</strong> the CSS does not validate.</p>
<p>There are no hacks in the CSS just lots of browsers specific declarations like:</p>
<p><code>-moz-box-shadow: 5px 5px 7px rgba(0,0,0,0.66);</code></p>
<p>And even worse Microsoft specific declarations, which break the W3C rules for CSS</p>
<p><code>filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=5, OffY=5, Color='#AA666666', Positive='true');</code></p>
<p>As I said in my presentation, the important thing to know about validation, is why your code does not validate, if you know that, then validation is irrelevant.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickcowie.com/2009/why-use-css-zen-garden-for-css3-demo/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CSS3 presentations at EOTW09 and WebJam11</title>
		<link>http://nickcowie.com/2009/css3-presentations-at-eotw09-and-webjam11/</link>
		<comments>http://nickcowie.com/2009/css3-presentations-at-eotw09-and-webjam11/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 14:57:44 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[conferences]]></category>
		<category><![CDATA[css and html]]></category>
		<category><![CDATA[presentations]]></category>
		<category><![CDATA[progressive enhancement]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[eotw09]]></category>
		<category><![CDATA[webjam11]]></category>

		<guid isPermaLink="false">http://nickcowie.com/?p=454</guid>
		<description><![CDATA[<p>I really enjoyed developing my presentation for Edge of the Web. The research and experimentation was a lot of fun.  Explore the <a href="http://nickcowie.com/eotw">demo using CSS Zen Garden HTML</a>  and seriously try it in IE6, the<a href="http://nickcowie.com/webjam11"> WebJam presentation</a> with some even more outrageous transitions needs Safari4 <del>or FF3.7</del> and a little  exploring with a mouse.</p>
<div style="width:425px;text-align:left" id="__ss_2408884"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/nickobec/progressive-enhancement-with-css3" title="Progressive enhancement with CSS3">Progressive enhancement with CSS3</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=css3-091103025215-phpapp01&#038;stripped_title=progressive-enhancement-with-css3" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=css3-091103025215-phpapp01&#038;stripped_title=progressive-enhancement-with-css3" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">documents</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/nickobec">Nick Cowie</a>.</div></div>
<p>What I learnt is enough from probably a dozen blog posts, so hopefully I will be writing  lot in the next few weeks.</p>]]></description>
			<content:encoded><![CDATA[<p>I really enjoyed developing my presentation for Edge of the Web. The research and experimentation was a lot of fun.  Explore the <a href="http://nickcowie.com/eotw">demo using CSS Zen Garden HTML</a>  and seriously try it in IE6, the<a href="http://nickcowie.com/webjam11"> WebJam presentation</a> with some even more outrageous transitions needs Safari4 <del>or FF3.7</del> and a little  exploring with a mouse.</p>
<div style="width:425px;text-align:left" id="__ss_2408884"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/nickobec/progressive-enhancement-with-css3" title="Progressive enhancement with CSS3">Progressive enhancement with CSS3</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=css3-091103025215-phpapp01&#038;stripped_title=progressive-enhancement-with-css3" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=css3-091103025215-phpapp01&#038;stripped_title=progressive-enhancement-with-css3" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">documents</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/nickobec">Nick Cowie</a>.</div>
</div>
<p>What I learnt is enough from probably a dozen blog posts, so hopefully I will be writing  lot in the next few weeks.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickcowie.com/2009/css3-presentations-at-eotw09-and-webjam11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The League of Moveable Type</title>
		<link>http://nickcowie.com/2009/the-league-of-moveable-type/</link>
		<comments>http://nickcowie.com/2009/the-league-of-moveable-type/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 01:04:55 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[css and html]]></category>
		<category><![CDATA[progressive enhancement]]></category>
		<category><![CDATA[@font-fact]]></category>
		<category><![CDATA[fonts]]></category>

		<guid isPermaLink="false">http://nickcowie.com/?p=447</guid>
		<description><![CDATA[<p>I just admire <a href='http://www.theleagueofmoveabletype.com/'>The League of Moveable Type</a>. While a lot of font foundries are still working on licensing issues with embedding fonts in PDFs. here a couple of font designers discovered <a href="http://nickcowie.com/2008/font-face/">@font-face</a> and went lets make the world a better place. By creating <a href='http://www.theleagueofmoveabletype.com/'>The League of Moveable Type</a>, convincing a few fellow font designers to join them in releasing fonts with an open source licence suitable for embedding with @font-face.</p>]]></description>
			<content:encoded><![CDATA[<p>I just admire <a href='http://www.theleagueofmoveabletype.com/'>The League of Moveable Type</a>. While a lot of font foundries are still working on licensing issues with embedding fonts in PDFs. here a couple of font designers discovered <a href="http://nickcowie.com/2008/font-face/">@font-face</a> and went lets make the world a better place. By creating <a href='http://www.theleagueofmoveabletype.com/'>The League of Moveable Type</a>, convincing a few fellow font designers to join them in releasing fonts with an open source licence suitable for embedding with @font-face.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickcowie.com/2009/the-league-of-moveable-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I am on the Edge of the Web</title>
		<link>http://nickcowie.com/2009/i-am-on-the-edge-of-the-web/</link>
		<comments>http://nickcowie.com/2009/i-am-on-the-edge-of-the-web/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 00:58:07 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[conferences]]></category>
		<category><![CDATA[css and html]]></category>
		<category><![CDATA[Just geek]]></category>
		<category><![CDATA[progressive enhancement]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[edge of the web]]></category>
		<category><![CDATA[eotw]]></category>
		<category><![CDATA[web conference]]></category>

		<guid isPermaLink="false">http://nickcowie.com/?p=444</guid>
		<description><![CDATA[<p>Well I am speaking at the Edge of the Web Conference in Perth in November. The title Progressive Enhancement with CSS: Or how I stopped worrying about IE6 and starting loving CSS3.</p>
<p>The aim is to show how you can use CSS2 and CSS3 to improve the experience of visitors using modern browsers, while not blocking access to those people still using older browsers like IE6 &#8230;</p> ]]></description>
			<content:encoded><![CDATA[<p>Well I am speaking at the Edge of the Web Conference in Perth in November. The title Progressive Enhancement with CSS: Or how I stopped worrying about IE6 and starting loving CSS3.</p>
<p>The aim is to show how you can use CSS2 and CSS3 to improve the experience of visitors using modern browsers, while not blocking access to those people still using older browsers like IE6.  I want to convince the audience, that you can build sites that do not have to look the same in all browsers.</p>
<p>I will be looking at what CSS2 and CSS3 you can safely implement now. The main provision it must not break IE6. It does not have to work in IE6, just have a safe fallback position.</p>
<p>The presentation is not aimed at people who read Surfin Safari, CSS3.info or similar sites and then go off an experiment with what they have been shown. That is what I do</p>
<p>I know I will be covering those I covered indepth before like <a href="http://mixedgrill.webindustry.asn.au/2008/opacity-vs-rgba-transparency-with-css">opacity/transparency</a> and &lt;a href=http://nickcowie.com/2008/font-face/”&gt;@font-face</a>. Are there any other CSS2 or CSS3 properties you would like to see me cover? Otherwise I might go all shock and awe with transitions ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://nickcowie.com/2009/i-am-on-the-edge-of-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaning up Word HTML</title>
		<link>http://nickcowie.com/2009/cleaning-up-word-html/</link>
		<comments>http://nickcowie.com/2009/cleaning-up-word-html/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 15:27:25 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[css and html]]></category>
		<category><![CDATA[clean]]></category>
		<category><![CDATA[word]]></category>
		<category><![CDATA[word html]]></category>

		<guid isPermaLink="false">http://nickcowie.com/?p=442</guid>
		<description><![CDATA[<p>If you are like me, on occasions you have people want to paste directly from Word into CMS or Wordpress. I was bemoaning the fact, that you either end up with Word HTML or lose all the formatting, when a colleague of mine, <a href="http://stevenmiles.com.au/">Steven Miles</a> suggest I use JavaScript to clean up the HTML and provide the some code.</p>
<p>So this is what I created to <a href="http://nickcowie.com/other/clean.html">clean up Word HTML</a>, you paste the HTML is to the editable div, hit the button and if you are using Internet Explorer the converted HTML is copied to your clipboard. So you can paste the clean HTML (note it is HTML code) straight into the CMS editor in HTML mode &#8230;</p>
<h3>*** does not currently work in IE8, I need to investigate further ***</h3>]]></description>
			<content:encoded><![CDATA[<p>If you are like me, on occasions you have people want to paste directly from Word into CMS or WordPress. I was bemoaning the fact, that you either end up with Word HTML or lose all the formatting, when a colleague of mine, <a href="http://stevenmiles.com.au/">Steven Miles</a> suggest I use JavaScript to clean up the HTML and provide the some code.</p>
<p>So this is what I created to <a href="http://nickcowie.com/other/clean.html">clean up Word HTML</a>, you paste the HTML is to the editable div, hit the button and if you are using Internet Explorer the converted HTML is copied to your clipboard. So you can paste the clean HTML (note it is HTML code) straight into the CMS editor in HTML mode or WordPress.</p>
<p>Note, while you can use JavaScript to add to the clipboard with Internet Explorer, you need to use <a href="http://javascript.internet.com/forms/clipboard-copy.html">Flash to copy the contents</a> to the clipboard for other browsers. I have not do that yet. Mainly because Internet Explorer is the corporate browser and this was created for work.</p.</p>
<p>So have a look under the hood, see how it works, take the code  and modify it for your own use. It appears to be working for what I need, but maybe needed to be modified for your situation.</p>
<p><ins datetime="2009-10-05T04:41:53+00:00"><br />
<h3>*** does not currently work in IE8, I need to investigate further ***</h3>
]]></content:encoded>
			<wfw:commentRss>http://nickcowie.com/2009/cleaning-up-word-html/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Drop caps, first-letter and Firefox</title>
		<link>http://nickcowie.com/2009/drop-caps-first-letter-and-firefox/</link>
		<comments>http://nickcowie.com/2009/drop-caps-first-letter-and-firefox/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 12:57:11 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[css and html]]></category>
		<category><![CDATA[css2]]></category>
		<category><![CDATA[firefox bashing]]></category>
		<category><![CDATA[first-letter]]></category>
		<category><![CDATA[pseudo element]]></category>

		<guid isPermaLink="false">http://nickcowie.com/?p=401</guid>
		<description><![CDATA[<p>I have been experimenting with the :first-letter pseudo-element to try and write up a tutorial on using first-letter, adjacent selectors and @font-face to produce drop caps and I have run into a problem in the form of Firefox. Because you need to apply the property float: left to stop first-letter being an inline element and Firefox applies different rules to floated :first-letter pseudo-element than the other browsers, making it difficult to vertically align a floated :first-letter pseudo-element and the the remaining text.</p>]]></description>
			<content:encoded><![CDATA[<p>I have been experimenting with the :first-letter pseudo-element to try and write up a tutorial on using first-letter, adjacent selectors and @font-face to produce drop caps and I have run into a problem in the form of Firefox. Because you need to apply the property float: left to stop first-letter being an inline element and Firefox applies different rules to floated :first-letter pseudo-element than the other browsers, making it difficult to vertically align a floated :first-letter pseudo-element and the the remaining text.</p>
<p>The <a href="http://www.w3.org/TR/CSS21/selector.html#first-letter">specs for :first-letter pseudo-element</a> state:</p>
<blockquote><p>These are the properties that apply to :first-letter pseudo-elements: font properties, … ‘line-height’, … margin properties, padding properties  … UAs may apply other properties as well.</p></blockquote>
<p>Width and height are not properties that have to be applied to first-letter. Only the WebKit family (Safari, Chrome etc.) apply these properties. The main issue is line-height which could be used to control the vertical size of the first-letter pseudo-element, as according to the specs.</p>
<blockquote><p>To allow UAs to render a typographically correct drop cap or initial cap, the UA may choose a line-height, width and height based on the shape of the letter</p></blockquote>
<p>Internet Explorer, Webkit and Opera have chosen not to apply line-height and unless one is specified, a :first-letter pseudo-element will inherit line-height from the parent element. Firefox has chosen to apply a line-height to all first-letter elements equal to the height of the element and you have no method of changing it. This automatically aligns the top of the floated :first-letter pseudo-element in the parent block element.</p>
<p>Because the line-height is the height of the type, you get different line-height for different characters eg a, t and p. Which makes it virtually impossible to use lower case letters to produce drop caps like effects.</p>
<p>So you need to reduce the line-height of first-letter to the cap height of your chosen typeface then use margin-top or padding-top to vertically align the top of first-letter with the top of the remaining text. Not only is this more complicated than just changing line-height, you need to do two calculations instead of one. Internet Explorer applies margin and padding to floated :first-letter pseudo-elements differently than other browsers. By fixing the :first-letter pseudo-element in place after applying line-height then applying margin and padding to it, which does not effect surrounding elements.</p>
<p><a href="http://www.flickr.com/photos/nickobec/3209726958/" title=":first-letter pseudo element by nickobec, on Flickr"><img src="http://farm4.static.flickr.com/3120/3209726958_dbf2f0e461.jpg" width="500" height="193" alt=":first-letter pseudo element" /></a></p>
<p>Five different browsers rendering  <a href="http://nickcowie.com/proge/fletter.html">floated :first-letter pseudo-elements</a> with slightly different properties. Chrome produces the same results as Safari. Note IE8b2 does strange things to backgrounds both colour and images of the:first-letter pseudo-element.</p>
<p>So to get a cross browser drop cap effect using :first-letter pseudo-element that vertically aligns, you need to apply float: left, then find the height of the typeface cap height, reduce the line-height to that, adjust margin-top so it aligns correctly in Firefox and in Opera or a WebKit browser, and then using conditional comments for an IE only stylesheet remove margin-top and change line-height to correctly vertically align the type.
<p>It would of been a lot easier if Mozilla Corporation and  Microsoft read the CSS specifications the same way as everybody else and applied the same rules.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickcowie.com/2009/drop-caps-first-letter-and-firefox/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

