<?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>Daniel Hardy &#187; CSS</title>
	<atom:link href="http://www.danielhardy.com/blog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danielhardy.com</link>
	<description>I speak usability &#38; developer to make amazing user experiences.</description>
	<lastBuildDate>Wed, 26 Oct 2011 04:27:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Dynamic Comment System</title>
		<link>http://www.danielhardy.com/blog/dynamic-comment-system/</link>
		<comments>http://www.danielhardy.com/blog/dynamic-comment-system/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 01:27:14 +0000</pubDate>
		<dc:creator>Daniel Hardy</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Dynamic Content]]></category>

		<guid isPermaLink="false">http://www.danielhardy.com/blog/dynamic-comment-system/</guid>
		<description><![CDATA[Yesterday a friend of mine showed me a great dynamic comment system being used over at deadspin.com . After seeing it in action I decided it would be fun to implement something similar on my site (even if I rarely get any comments). I have whipped up a bit of Javascript and tweaked my template [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday a friend of mine showed me a great dynamic comment system being used over at <a href="http://deadsping.com" title="Visit Deadspin">deadspin.com</a> .  After seeing it in action I decided it would be fun to implement something similar on my site (even if I rarely get any comments).  I have whipped up a bit of Javascript and tweaked my template a bit to support it.  Please leave a comment and let me know what you think.  If it gets decent reviews I can great a tutorial on how to easily implement it on a typical WordPress theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielhardy.com/blog/dynamic-comment-system/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HoneyPot Spam Fighting</title>
		<link>http://www.danielhardy.com/blog/honeypot-spam-fighting/</link>
		<comments>http://www.danielhardy.com/blog/honeypot-spam-fighting/#comments</comments>
		<pubDate>Sun, 02 Dec 2007 16:32:51 +0000</pubDate>
		<dc:creator>Daniel Hardy</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Validation]]></category>

		<guid isPermaLink="false">http://www.danielhardy.com/blog/?p=54</guid>
		<description><![CDATA[I have been working on various forum validation techniques lately and came across a simple idea that seems to make a lot of sense. You can read more about it here. The basic idea is that you include a hidden form element. If this element is filled in then it is probably a bot that [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working on various forum validation techniques lately and came across a simple idea that seems to make a lot of sense.  You can read more about it <a href="http://haacked.com/archive/2007/09/11/honeypot-captcha.aspx">here.</a>  The basic idea is that you include a hidden form element.  If this element is filled in then it is probably a bot that doesn&#8217;t understand CSS or Javascript.  When  handling this submission you know that you can ignore it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielhardy.com/blog/honeypot-spam-fighting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tip for those pearly white pages.</title>
		<link>http://www.danielhardy.com/blog/tip-for-those-pearly-white-pages/</link>
		<comments>http://www.danielhardy.com/blog/tip-for-those-pearly-white-pages/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 04:36:52 +0000</pubDate>
		<dc:creator>Daniel Hardy</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.danielhardy.com/blog/?p=40</guid>
		<description><![CDATA[I have been using a unique theme for a while now and have noticed something strange. It appears that many people don&#8217;t code in the background color because they assume that the default is white. Well this is a fallacy, as it turns out the default is set by the window manager and there fore [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using a unique theme for a while now and have noticed something strange.  It appears that many people don&#8217;t code in the background color because they assume that the default is white.  Well this is a fallacy, as it turns out the default is set by the window manager and there fore your page may be broken.  I know I am a minority but it is not that hard to add one line of code to ensure your site is always at its full glory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielhardy.com/blog/tip-for-those-pearly-white-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coding your Logo</title>
		<link>http://www.danielhardy.com/blog/coding-your-logo/</link>
		<comments>http://www.danielhardy.com/blog/coding-your-logo/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 02:42:10 +0000</pubDate>
		<dc:creator>Daniel Hardy</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.danielhardy.com/blog/?p=39</guid>
		<description><![CDATA[Making logos accessible is actually much easier than many make it out to be. It is important to make your logos accessible as you want them to have a strong search engine presence. For this tutorial you will need to have a basic understanding of XHTML and CSS. First comes the HTML. Generally your logo [...]]]></description>
			<content:encoded><![CDATA[<p>Making logos accessible is actually much easier than many make it out to be.  It is important to make your logos accessible as you want them to have a strong search engine presence.</p>
<p>For this tutorial you will need to have a basic understanding of XHTML and CSS.</p>
<p>First comes the HTML.  Generally your logo is nested in the header like this.</p>
<p><code>&lt;!--HTML Code--&gt;<br />
&lt;div id="header"&gt;<br />
&lt;a href="home"&gt;&lt;img src="yourlogo.jpg" alt="COMPANY NAME"  /&gt;&lt;/a&gt;<br />
&lt;/div&gt;<br />
</code></p>
<p>To make this more accessible and for it to degrade gracefully we really want to eliminate the &#8220;img&#8221; element and in turn use a text elements like this</p>
<p><code>&lt;!--HTML Code--&gt;<br />
&lt;div id="header"&gt;<br />
&lt;h1&gt;&lt;a href="home.htm"&gt;YOU COMPANY NAME AND ANYTHING ELSE&lt;/a&gt;<br />
&lt;/div&gt;<br />
</code></p>
<p>In the above case if a user views the page un-styled they will simply see an H1 header link with the name of your company and any other text you place inside.  This allows search engines to read the actual logo in plain text and assign this text an important value (first H1 elements are seen as important).  It also improves mobile device structure as many of them don&#8217;t like images.</p>
<p>Now we can use CSS to make the image based logo appear where we want it and more importantly how we want it (image).  We only need to style two elements, the &#8216;H1&#8242; and &#8216;a&#8217; tags.</p>
<p><code>/*CSS Code*/<br />
#header h1{<br />
width:auto;<br />
height:auto;<br />
text-indent:-9000px; /*This removes the text from the screen*/<br />
}<br />
#header h1 a{<br />
width:300px;<br />
height:100px;<br />
background:transparent url('path/to/your/image.jpg');<br />
display:block; /*This is critical*/<br />
}<br />
</code></p>
<p>In the &#8216;H1&#8242; element you will notice that we gave it a text-indent of -9000px.  This moves the the text far enough off the left side of the page that even with the largest monitor it is not visible.  By doing this we ensure that pesky text doesn&#8217;t sit on top of our beautiful logo.</p>
<p>The next unusual piece you will find in the CSS is under the &#8216;a&#8217; element.  &#8220;Display:block;&#8221; renders the &#8216;a&#8217; element as a block level element allowing it to have a fixed width and height.</p>
<p>Now you have a beautiful logo that degrades seamlessly and is extremely accessible both to humans and search engines.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielhardy.com/blog/coding-your-logo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web developers: Testeverything in one shot!</title>
		<link>http://www.danielhardy.com/blog/web-developers-testeverything-in-one-shot-2/</link>
		<comments>http://www.danielhardy.com/blog/web-developers-testeverything-in-one-shot-2/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 19:33:41 +0000</pubDate>
		<dc:creator>digg</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.danielhardy.com/blog/?p=28</guid>
		<description><![CDATA[Great web app. to test and validate just about every aspect of a web page in one single shot. This includes things like validating HTML/XHTML, CSS, Feeds, etc to testing for accessibility and SEO problems. Very handy, check it out read more &#124; digg story]]></description>
			<content:encoded><![CDATA[<p>Great web app. to test and validate just about every aspect of a web page in one single shot.  This includes things like validating HTML/XHTML, CSS, Feeds, etc to testing for accessibility and SEO problems.</p>
<p>Very handy, check it out</p>
<p><a href="http://tester.jonasjohn.de/">read more</a> | <a href="http://digg.com/programming/Web_developers_Testeverything_in_one_shot">digg story</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danielhardy.com/blog/web-developers-testeverything-in-one-shot-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

