<?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>Blue Anvil Journal &#187; Web design &amp; development</title>
	<atom:link href="http://blue-anvil.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://blue-anvil.com</link>
	<description>The online blogfolio of Mike Jolley</description>
	<lastBuildDate>Fri, 03 Dec 2010 18:16:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MiniCard Theme for WordPress &#8211; a cool free business card/social network theme</title>
		<link>http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/</link>
		<comments>http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 11:27:01 +0000</pubDate>
		<dc:creator>Mike Jolley</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[Business Card]]></category>
		<category><![CDATA[hcard]]></category>
		<category><![CDATA[microformat]]></category>
		<category><![CDATA[MiniCard]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blue-anvil.com/?p=657</guid>
		<description><![CDATA[Want more MiniCard goodness? Purchase the premium pack to gain access to the in-built AJAX RSS feed module, several new sub-themes, priority support, and the warm fuzzy feeling you get by supporting the author! Premium is £25 GBP. I am releasing my MiniCard theme for wordpress which supports hCard/vCard microformats, tonnes of social networks, showing [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-708" title="minicard" src="http://blue-anvil.com/wp-content/uploads/2009/11/minicard.jpg" alt="minicard" width="488" height="100" /></p>
<div style="float: right; border: 1px solid #ccc; width: 208px; padding: 10px; -moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; text-align: center; font-size: 11px; margin: 0 0 10px 20px;">
<p><strong>Want more MiniCard goodness?</strong> Purchase the premium pack to gain access to the in-built AJAX RSS feed module, several new sub-themes, priority support, and the warm fuzzy feeling you get by supporting the author! Premium is £25 GBP.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_s-xclick" />
<input name="hosted_button_id" type="hidden" value="9583137" />
<input alt="PayPal - The safer, easier way to pay online." name="submit" src="https://www.paypal.com/en_GB/i/btn/btn_buynow_LG.gif" type="image" /> <img src="https://www.paypal.com/en_GB/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /> </form>
</div>
<p>I am releasing my MiniCard theme for wordpress which supports hCard/vCard microformats, tonnes of social networks, showing some portfolio items (optional), and more &#8211; all controllable from its own Theme Config page. This theme is free and licensed under GPL &#8211; there is also a premium pack available with many theme variations, and the footer feed functionality.</p>
<p>Read more for more information and the download links. I hope you find this theme useful and spread the word <img src='http://blue-anvil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-657"></span></p>
<h2>About the Theme</h2>
<p>MiniCard is a social network/business card WordPress theme <a href="http://timvandamme.com/">inspired by Tim Van Damme&#8217;s excellent website</a>. The theme lets you add links to all the social networking sites you may be a member of, and post useful information such as bio&#8217;s and contact details. It also has built in hCard support and (optionally) lets you offer a vCard for visitors to download your contact information.</p>
<p>Another useful feature, for those with portfolios, is the ability to set up a portfolio category in which you can set up items to feature below your card. These items are shown as thumbnails/galleries and pop up in a lightbox when clicked.</p>
<p>To control all of the features of MiniCard the theme comes with a useful admin panel for setting up your networks, theme options, and contact details for your hCard.</p>
<p><p style="text-align:center"><script type="text/javascript"><!--
google_ad_client = "pub-6928386133078955";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "444444";
google_color_text = "444444";
google_color_url = "444444";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p></p>
<p>Since this is only a lightweight mini theme, widgets are not supported. You can however run a mini blog and make posts &#8211; these are all styled and fully supported.</p>
<p>To summarise:</p>
<ul>
<li>MiniCard is free to download and licensed under GPL</li>
<li>Loads of social networks supported</li>
<li>(Optional) Ajax Loading of main navigation links</li>
<li>Portfolio functionality with lightboxes</li>
<li>Theme Config section and instructions in WordPress admin</li>
<li>Built in hCard/vCard support</li>
<li>Comes with the default theme</li>
<li>Each theme contains several variations &#8211; <em>burst, diagonal stripe, horizontal stripe, vertical stripe, tartan.</em></li>
</ul>
<h3>Setting up the social page</h3>
<p>If on the Settings &gt; Reading page you have &#8216;posts&#8217; shown on the front page, the social networking page will show by default. Otherwise if you are setting the front page make sure you give it the &#8216;home&#8217; template.</p>
<h2>About the Premium Pack</h2>
<p>The MiniCard theme itself is free, however I have created a premium pack which simply &#8216;slots in&#8217; to the free theme. This pack contains:</p>
<ul>
<li>Feed functionality &#8211; pull in RSS feeds or your choice, for example your own blog and your twitter posts. Loaded in using AJAX so the page loads faster.</li>
<li>Several sub-themes -
<ul>
<li>Blue Anvil Blue</li>
<li>Black</li>
<li>Grey</li>
<li>Pink</li>
<li>Helveticard (minimalist theme based on Jon Hicks&#8217; design for Helvetireader)</li>
</ul>
</li>
</ul>
<p>You also get a warm fuzzy feeling inside knowing that you have helped support the author (me).</p>
<h2>Screenshots</h2>

<a href='http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/firefox-2/' title='Theme Config'><img width="150" height="150" src="http://blue-anvil.com/wp-content/uploads/2009/11/Firefox-2-150x150.png" class="attachment-thumbnail" alt="Theme Config" title="Theme Config" /></a>
<a href='http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/firefox-3/' title='Helveticard Theme'><img width="150" height="150" src="http://blue-anvil.com/wp-content/uploads/2009/11/Firefox-3-150x150.png" class="attachment-thumbnail" alt="Helveticard Theme" title="Helveticard Theme" /></a>
<a href='http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/firefox-4/' title='Pink Tartan theme'><img width="150" height="150" src="http://blue-anvil.com/wp-content/uploads/2009/11/Firefox-4-150x150.png" class="attachment-thumbnail" alt="Pink Tartan theme" title="Pink Tartan theme" /></a>
<a href='http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/firefox-5/' title='Grey Tartan theme'><img width="150" height="150" src="http://blue-anvil.com/wp-content/uploads/2009/11/Firefox-5-150x150.png" class="attachment-thumbnail" alt="Grey Tartan theme" title="Grey Tartan theme" /></a>
<a href='http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/firefox-6/' title='Black burst theme'><img width="150" height="150" src="http://blue-anvil.com/wp-content/uploads/2009/11/Firefox-6-150x150.png" class="attachment-thumbnail" alt="Black burst theme" title="Black burst theme" /></a>
<a href='http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/firefox-8/' title='Default burst theme'><img width="150" height="150" src="http://blue-anvil.com/wp-content/uploads/2009/11/Firefox-8-150x150.png" class="attachment-thumbnail" alt="Default burst theme" title="Default burst theme" /></a>
<a href='http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/firefox-9/' title='Blue Anvil blue burst theme'><img width="150" height="150" src="http://blue-anvil.com/wp-content/uploads/2009/11/Firefox-9-150x150.png" class="attachment-thumbnail" alt="Blue Anvil blue burst theme" title="Blue Anvil blue burst theme" /></a>
<a href='http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/firefox-10/' title='Portfolio Section'><img width="150" height="150" src="http://blue-anvil.com/wp-content/uploads/2009/11/Firefox-10-150x150.png" class="attachment-thumbnail" alt="Portfolio Section" title="Portfolio Section" /></a>
<a href='http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/firefox-11/' title='Main footer feed output'><img width="150" height="150" src="http://blue-anvil.com/wp-content/uploads/2009/11/Firefox-11-150x150.png" class="attachment-thumbnail" alt="Main footer feed output" title="Main footer feed output" /></a>
<a href='http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/firefox/' title='More theme options'><img width="150" height="150" src="http://blue-anvil.com/wp-content/uploads/2009/11/Firefox-150x150.png" class="attachment-thumbnail" alt="More theme options" title="More theme options" /></a>
<a href='http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/minicard/' title='minicard'><img width="150" height="100" src="http://blue-anvil.com/wp-content/uploads/2009/11/minicard-150x100.jpg" class="attachment-thumbnail" alt="minicard" title="minicard" /></a>

<h2>Demo</h2>
<p>I personally set up my MiniCard Theme to <a href="http://mikejolley.com/">demonstrate the theme in use</a>. You will notice the feed below my card &#8211; this is part of the premium pack.</p>
<h2>Download MiniCard (free)</h2>
<p><a href="http://wordpress.org/extend/themes/minicard">Download MiniCard from the WordPress Themes Directory →</a></p>
<h2>Purchase the Premium Pack (£25)</h2>
<input name="cmd" type="hidden" value="_s-xclick" />
<input name="hosted_button_id" type="hidden" value="9583137" />
<input alt="PayPal - The safer, easier way to pay online." name="submit" src="https://www.paypal.com/en_GB/i/btn/btn_buynow_LG.gif" type="image" /> <img src="https://www.paypal.com/en_GB/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /></p>
<h2>Support</h2>
<p>Questions? Bug Reports? Feedback? Contact me &#8211; priority will be given to premium pack purchasers.</p>
<h2>Licence &amp; Donate</h2>
<p>The MiniCard theme is licensed under GPL (http://www.opensource.org/licenses/gpl-3.0.html). You may remove the link back in the footer, but I would appreciate if your attributed my work. Remember, the more popular the theme becomes, the more likely it is maintained and updated in the future.</p>
<p>If you wish to make a donation because you like this theme, you can use the &#8216;Buy me a coffee&#8217; link below, buy the premium pack, or both <img src='http://blue-anvil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blue-anvil.com/archives/minicard-theme-for-wordpress-a-cool-free-business-cardsocial-network-theme/feed/</wfw:commentRss>
		<slash:comments>285</slash:comments>
		</item>
		<item>
		<title>Creating &#8216;Web 2.0&#8242; Layouts using strips</title>
		<link>http://blue-anvil.com/archives/creating-web-20-layouts-using-strips/</link>
		<comments>http://blue-anvil.com/archives/creating-web-20-layouts-using-strips/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 15:27:54 +0000</pubDate>
		<dc:creator>Mike Jolley</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://blue-anvil.com/?p=247</guid>
		<description><![CDATA[I&#8217;ve seen the &#8216;web 2.0&#8242; layout (full width background, centred content) done in some pretty wacky and different ways, the worst being a background image and then fixed height sections laid on top (if the content wraps or the text is resized&#8230;bam..broken layout). Because of this I am going to demonstrate the method I use [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blue-anvil.com/wp-content/uploads/2008/11/post_strips.gif" alt="Creating Layouts using strips" title="post_strips" class="alignnone size-full wp-image-286" /></p>
<p>I&#8217;ve seen the &#8216;web 2.0&#8242; layout (full width background, centred content) done in some pretty wacky and different ways, the worst being a background image and then fixed height sections laid on top (if the content wraps or the text is resized&#8230;bam..broken layout). </p>
<p>Because of this I am going to demonstrate the method I use &#8211; content strips. Hopefully this will be useful to CSS beginners who want to code this type of layout.</p>
<p><span id="more-247"></span></p>
<p>Essentially, what you do is treat each section, or &#8216;strip&#8217;, separately and layer them like a cake. </p>
<p>Lets take a commonly used design and demonstrate what I mean.</p>
<p><img src="http://blue-anvil.com/wp-content/uploads/2008/11/layout.gif" alt="" title="layout" width="300" height="175" class="aligncenter size-full wp-image-256" /></p>
<p>In the above design as you can see we have a header, a content (with two sub sections), and a footer. The footer and header require a full width background. So, horizontally we can see 3 strips &#8211; header, content, footer.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;header&quot;&gt;&lt;p&gt;Header&lt;/p&gt;&lt;/div&gt;
&lt;div id=&quot;content&quot;&gt;
    &lt;div class=&quot;mainContent&quot;&gt;&lt;p&gt;Main Content&lt;/p&gt;&lt;/div&gt;
    &lt;div class=&quot;subContent&quot;&gt;&lt;p&gt;Sub Content&lt;/p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;footer&quot;&gt;&lt;p&gt;Footer&lt;/p&gt;&lt;/div&gt;</pre></td></tr></table></div>

<p>Using CSS we can style each strip, leaving them all as full width elements. Header and footer should get a tiled background image each, and the text should be aligned center (<code>text-align:center;</code>).<br />
<p style="text-align:center"><script type="text/javascript"><!--
google_ad_client = "pub-6928386133078955";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "444444";
google_color_text = "444444";
google_color_url = "444444";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p><br />
The content itself should be centred and is common in all strips &#8211; lets say 700px wide in each section. To keep the content this wide we create a <code>.inner</code> class in the css stylesheet:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.inner</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">700px</span><span style="color: #00AA00;">;</span>     <span style="color: #808080; font-style: italic;">/* Limits its width */</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>   <span style="color: #808080; font-style: italic;">/* Makes this inner div centered */</span>
    <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>    <span style="color: #808080; font-style: italic;">/* Parent strips have center aligned text */</span>
    <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* To clear floats */</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Our HTML now looks like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;header&quot;&gt;
    &lt;div class=&quot;inner&quot;&gt;
        &lt;p&gt;Header&lt;/p&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;content&quot;&gt;
    &lt;div class=&quot;inner&quot;&gt;
        &lt;div class=&quot;mainContent&quot;&gt;&lt;p&gt;Main Content&lt;/p&gt;&lt;/div&gt;
        &lt;div class=&quot;subContent&quot;&gt;&lt;p&gt;Sub Content&lt;/p&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;footer&quot;&gt;
    &lt;div class=&quot;inner&quot;&gt;
        &lt;p&gt;Footer&lt;/p&gt;
    &lt;/div&gt;
&lt;/div&gt;</pre></td></tr></table></div>

<p>See how it works? Each strip can have its own background this way, and can shrink and grow to fit it&#8217;s content without breaking the layout.</p>
<p>As I said before, this is my preferred method of coding these kind of layouts and it has not failed me yet. I hope you found this useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://blue-anvil.com/archives/creating-web-20-layouts-using-strips/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Introducing: Theme Slice</title>
		<link>http://blue-anvil.com/archives/introducing-theme-slice/</link>
		<comments>http://blue-anvil.com/archives/introducing-theme-slice/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 20:33:22 +0000</pubDate>
		<dc:creator>Mike Jolley</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[psd]]></category>
		<category><![CDATA[psd to wordpress]]></category>
		<category><![CDATA[semantics]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[services]]></category>
		<category><![CDATA[themeslice]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://blue-anvil.com/?p=217</guid>
		<description><![CDATA[Theme Slice is an exciting take on the current crop of Slicing services out there; a PSD to WordPress Theme conversion service; brought to you by Anthony Brewitt and yours truly, Mike Jolley. You send in your mock up design and Theme Slice will send you back a full WordPress Theme based on your design. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><a href="http://themeslice.com"><img class="alignnone size-medium wp-image-219 floatleft" title="Theme Slice" src="http://blue-anvil.com/wp-content/uploads/2008/10/screen-capture-300x101.png" alt="" width="165" height="55" /></a><a title="Theme Slice PSD To WordPress" href="http://themeslice.com">Theme Slice</a> is an exciting take on the current crop of Slicing services out there; a <a title="PSD to WordPress Theme" href="http://themeslice.com">PSD to WordPress Theme</a> conversion service; brought to you by <a href="http://designbit.co.uk/">Anthony Brewitt</a> and yours truly, Mike Jolley. You send in your mock up design and Theme Slice will send you back a full WordPress Theme based on your design. Read on to learn more.</p>
<p style="text-align: left;"><span id="more-217"></span></p>
<h3 style="text-align: left;">It&#8217;s Here! <a href="http://themeslice.com">PSD To WordPress</a> Theme service</h3>
<p>You supply the PSD  / JPG / PNG of the design and we’ll make it into a full WordPress Theme, with a full CSS layout, widget ready and give you great support, all this in 2 &#8211; 6 days without breaking the bank.</p>
<p style="text-align: left;">We’ll slice up the images, craft the code, browser test and use SEO methods to ensure it ranks well in Google too. We cut no corners, every line of code is of the highest quality and every part of your theme will be crafted with great attention to detail. Simple!</p>
<p style="text-align: left;">On another note, I&#8217;d like to hear if anyone has an opinion on the <a href="http://themeslice.com">ThemeSlice</a> website; i&#8217;m hoping it looks good enough to eat <img src='http://blue-anvil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Most of the time I spent designing it I was hungry&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blue-anvil.com/archives/introducing-theme-slice/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating an accessible yet sexy search box with CSS</title>
		<link>http://blue-anvil.com/archives/creating-an-accessible-yet-sexy-search-box-with-css/</link>
		<comments>http://blue-anvil.com/archives/creating-an-accessible-yet-sexy-search-box-with-css/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 23:58:16 +0000</pubDate>
		<dc:creator>Mike Jolley</dc:creator>
				<category><![CDATA[Accessibility, Standards & SEO]]></category>
		<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[cross browser]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[semantics]]></category>
		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://blue-anvil.com/?p=162</guid>
		<description><![CDATA[Search boxes: integral parts of many websites but often neglected in terms of markup and style. When considering both accessibility and semantics, marking up a a search box can be a little awkward depending on the look you are trying to achieve. In this post I will suggest some methods of marking up your search [...]]]></description>
			<content:encoded><![CDATA[<p><img class="floatleft" style="float: left; margin: 0 4px 2px 0;" src="http://blue-anvil.com/img/searchform.gif" alt="Create a Search Box" />Search boxes: integral parts of many websites but often neglected in terms of markup and style. When considering both accessibility and semantics, marking up a a search box can be a little awkward depending on the look you are trying to achieve.</p>
<p>In this post I will suggest some methods of marking up your search boxes, and show a neat way of styling it using css and a few images.</p>
<p><span id="more-162"></span></p>
<h2>First things first</h2>
<p>Lets think about what is needed. For a search box we need:</p>
<ol>
<li>A form element</li>
<li>A text input</li>
<li>A submit button</li>
</ol>
<p>Also, ideally we need a <code>label</code> element for accessibility reasons so that users know what purpose the input element has (you can r<a href="http://www.456bereastreet.com/archive/200711/use_the_label_element_to_make_your_html_forms_accessible/">ead more about labels and accessibility at 456 Berea St</a>).</p>
<p>Therefore, here is the markup we could use for our form:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;form action=&quot;page.html&quot; method=&quot;post&quot;&gt;
      &lt;div&gt;
            &lt;label for=&quot;search&quot;&gt;Search:&lt;/label&gt;
            &lt;input id=&quot;search&quot; name=&quot;search&quot; type=&quot;text&quot; /&gt;
            &lt;input alt=&quot;Search&quot; src=&quot;img/search.gif&quot; type=&quot;image&quot; /&gt;
      &lt;/div&gt;
&lt;/form&gt;</pre></td></tr></table></div>

<p>This is pretty much the way most people would do it, but Im going to challenge this for the following reasons:</p>
<ol>
<li>We rarely want the label visible after styling</li>
<li>Hiding the label with <code>display:none</code> can cause accessibility issues (<a href="http://www.456bereastreet.com/archive/200711/screen_readers_sometimes_ignore_displaynone/">link</a>)</li>
<li>Other methods of hiding the label can also cause issues (l<a href="http://sonspring.com/journal/accessible-display-none">ink</a>)</li>
<li>I want a method that does not require hiding the label…</li>
</ol>
<p>Therefore I have come up with the following; this may have drawbacks which I’m hoping people will discuss in the article comments, any here goes:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;form id=&quot;searchform&quot; action=&quot;page.html&quot; method=&quot;post&quot;&gt;
      &lt;div&gt;
            &lt;input id=&quot;search&quot; name=&quot;search&quot; type=&quot;text&quot; /&gt;
            &lt;label for=&quot;search&quot;&gt;&lt;input title=&quot;Search&quot; alt=&quot;Search&quot; src=&quot;img/search3.gif&quot; type=&quot;image&quot; /&gt;&lt;/label&gt;
      &lt;/div&gt;
&lt;/form&gt;</pre></td></tr></table></div>

<p>My reasoning behind this is, we still get the association between label and form element, the input has alt text of ‘Search’ which means this is what (in theory) the screen reader should pick up. Because this label doubles as the submit button we also don’t have to hide it. This method is also pretty easy to style. Lets get on to that now.</p>
<p><!--adsense--></p>
<h2>Styling the form</h2>
<p>To style my form I will use 3 images: left curve, a gradient and the submit button. I could use a 4th image and tile it for the top and bottom borders, but for this Im just going to use css borders on the input box.</p>
<p>Now for the css:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#searchform</span> div <span style="color: #00AA00;">&#123;</span>
    <span style="color: #808080; font-style: italic;">/* This div will have the left image as a background */</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>search1.gif<span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#searchform</span> <span style="color: #cc00cc;">#search</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #808080; font-style: italic;">/* Im going to apply a top and bottom border to this input so that it fits with my images and give it the gradient background */</span>
    <span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border-left</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>search2.gif<span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#searchform</span> input <span style="color: #00AA00;">&#123;</span>
    <span style="color: #808080; font-style: italic;">/* Some reset styles to make my form elements play nice */</span>
    <span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> !important<span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Internet explorer plays up a bit regarding input positioning but this can be overcome with a conditional comment to add a pixel of padding to the input box:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;!--[if lte IE 7]&gt;
      &lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;#searchform #search {     position:relative;     margin-top:-1px !important; }&lt;/style&gt;
&lt;![endif]--&gt;</pre></td></tr></table></div>

<p>Heres what it looks like:</p>
<pre>
<form id="demo_searchform" action="#" method="post">
<div style="background: url(http://blue-anvil.com/tuts/search1.gif) no-repeat left top; padding: 0 10px !important; margin: 0; line-height: 1;">
<input id="demo_search" style="outline: 0 !important; border-top: 2px solid #999; border-bottom: 2px solid #999; border-left: 0; border-right: 0; background: #fff url(http://blue-anvil.com/tuts/search2.gif) repeat-x top; padding: 3px 2px 2px 0; height: 15px; vertical-align: top; margin: 0; line-height: 1;" name="search" type="text" /><label for="demo_search">
<input style="outline: 0 !important; margin: 0 !important; line-height: 1; float: none; vertical-align: top;" title="Search" alt="Search" src="http://blue-anvil.com/tuts/search3.gif" type="image" /></label></div>
</form>
</pre>
<h2>Mission accomplished?</h2>
<p>It looks nice, but how accessible and semantic do you think the code is? I personally think its better than simply hiding the label but I could be wrong. Discuss below!</p>
]]></content:encoded>
			<wfw:commentRss>http://blue-anvil.com/archives/creating-an-accessible-yet-sexy-search-box-with-css/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Easy jQuery Pull Quotes</title>
		<link>http://blue-anvil.com/archives/easy-jquery-pull-quotes/</link>
		<comments>http://blue-anvil.com/archives/easy-jquery-pull-quotes/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 01:43:04 +0000</pubDate>
		<dc:creator>Mike Jolley</dc:creator>
				<category><![CDATA[jQuery Plugins & Snippets]]></category>
		<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Pull Quotes]]></category>

		<guid isPermaLink="false">http://blue-anvil.com/archives/easy-jquery-pull-quotes</guid>
		<description><![CDATA[Pull quotes, lift-out quotes, or call-outs are a handy method of drawing reader&#8217;s attention to a section of text. Recently, on a couple of client projects, I&#8217;ve seen the need to enhance large blocks of text so the user could skim read them without missing the really important parts. Pull quotes seemed perfect for this, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blue-anvil.com/img/pull.gif" class="floatleft" style="float:left;margin:0 4px 2px 0;" alt="Pull Quotes" />Pull quotes, lift-out quotes, or call-outs are a handy method of drawing reader&#8217;s attention to a section of text. Recently, on a couple of client projects, I&#8217;ve seen the need to enhance large blocks of text so the user could skim read them without missing the really important parts. Pull quotes seemed perfect for this, so I created a small jQuery script to take care of them.</p>
<p>In this article I demonstrate an easy method of creating pull quotes from a block of text using <a href="http://jquery.com/">jQuery</a> (a JavaScript library), CSS, and the html <code>span</code> element. I hope you find this method useful.</p>
<p><span id="more-110"></span></p>
<h2>The code</h2>
<p>To use the easy pull quote script you need the javascript and the css code, then a simple <code>span</code> surrounding what you want to be in the pullquote.</p>
<h3>Javascript</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// When the page is ready...</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span>
   <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
   <span style="color: #009900;">&#123;</span>
&nbsp;
	   	<span style="color: #006600; font-style: italic;">// Easy Pullquotes by Mike Jolley</span>
                <span style="color: #006600; font-style: italic;">// Go through each span element with a classname of &quot;pullquote&quot;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'span.pullquote'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                        <span style="color: #006600; font-style: italic;">// Get the text of the span</span>
			text <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        <span style="color: #006600; font-style: italic;">// Get rid of unwanted charactors</span>
			text<span style="color: #339933;">=</span>text.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span> <span style="color: #009966; font-style: italic;">/\((.*)\)/gi</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot; &quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        <span style="color: #006600; font-style: italic;">// Check if this is to be a right or left pull quote and output it</span>
			<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066; font-weight: bold;">is</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.right&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> 
				$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">before</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;blockquote class=&quot;pullquote right&quot;&gt;&lt;p&gt;&amp;quot;'</span><span style="color: #339933;">+</span> text <span style="color: #339933;">+</span><span style="color: #3366CC;">'&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">else</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">before</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;blockquote class=&quot;pullquote&quot;&gt;&lt;p&gt;&amp;quot;'</span><span style="color: #339933;">+</span> text <span style="color: #339933;">+</span><span style="color: #3366CC;">'&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #006600; font-style: italic;">// End pull quote code</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3>CSS</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">blockquote<span style="color: #6666ff;">.pullquote</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">15px</span> <span style="color: #933;">8px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">180px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #993333;">double</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #993333;">double</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-left</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">1.6em</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fefefe</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
blockquote<span style="color: #6666ff;">.pullquote</span>.<span style="color: #000000; font-weight: bold;">right</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">8px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
blockquote<span style="color: #6666ff;">.pullquote</span> p <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">1.4em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#666</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h2>Instructions</h2>
<p>For a left aligned pull quote simply wrap the text you want in the quote with a <code>span</code> with the classname &#8220;pullquote&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;p&gt;Lorem ipsum dolor sit amet &lt;span class=&quot;pullquote&quot;&gt;purus mollis dictum&lt;/span&gt;.&lt;/p&gt;</pre></div></div>

<p>For a left aligned pull quote also add the &#8220;right&#8221; classname:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;p&gt;Lorem ipsum dolor sit amet &lt;span class=&quot;pullquote right&quot;&gt;purus mollis dictum&lt;/span&gt;.&lt;/p&gt;</pre></div></div>

<h2>Demo:</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum felis. Aliquam elit urna, dapibus id, gravida non, fermentum sit amet, libero. Aenean posuere ante at tellus. Nulla pharetra justo nec tellus. Cras feugiat sapien quis metus. Donec bibendum. Nam eget augue. Phasellus eu nisi. Vivamus tincidunt blandit leo. Integer eu mi et <span class="pullquote">purus mollis dictum</span>.</p>
<p>Mauris imperdiet lectus a ante. Nunc vestibulum lacus eu tortor. Sed et risus. Morbi orci leo, posuere adipiscing, pharetra ut, fringilla in, risus. Morbi auctor aliquam neque. Vivamus id lacus sit amet felis porta tincidunt. Pellentesque vehicula. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce a elit fringilla turpis nonummy ultrices. <span class="pullquote right">Pellentesque in pede.</span> Phasellus non dolor et metus venenatis nonummy. Proin sit amet eros vitae mi tempus convallis. Mauris vel dui sit amet risus facilisis luctus. Sed quis orci. Phasellus vitae velit ac mauris viverra pellentesque. Curabitur eros.</p>
<h2>Acknowledgments</h2>
<p>My Easy pull quotes were inspired by <a href="http://www.456bereastreet.com/archive/200609/automatic_pullquotes_with_javascript_and_css/">Roger Johansson&#8217;s automatic pull quotes</a> which use normal JavaScript and CSS to achieve the same effect.</p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://blue-anvil.com/archives/easy-jquery-pull-quotes/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Anti-aliased Rounded corners with JQuery</title>
		<link>http://blue-anvil.com/archives/anti-aliased-rounded-corners-with-jquery/</link>
		<comments>http://blue-anvil.com/archives/anti-aliased-rounded-corners-with-jquery/#comments</comments>
		<pubDate>Mon, 24 Sep 2007 15:04:19 +0000</pubDate>
		<dc:creator>Mike Jolley</dc:creator>
				<category><![CDATA[jQuery Plugins & Snippets]]></category>
		<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[rounded corners]]></category>

		<guid isPermaLink="false">http://82.110.105.91/blue-anvil.co.uk/?p=91</guid>
		<description><![CDATA[Recently I&#8217;ve been searching for a method of creating nice looking rounded corners with Javascript &#038; JQuery. First I found the &#8220;JQuery Corner&#8221; plugin for rounded corners, but was disappointed that it did not include smooth, anti-aliased corners. I then did some more google-trawling and found this post, which contained a modified version of Curvy [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blue-anvil.com/img/rounded.gif" class="floatleft" style="float:left;margin:0 4px 2px 0;" alt="Rounded Corners" />Recently I&#8217;ve been searching for a method of creating nice looking rounded corners with Javascript &#038; JQuery. </p>
<p>First I found the <a href="http://www.methvin.com/jquery/jq-corner-demo.html">&#8220;JQuery Corner&#8221; plugin</a> for rounded corners, but was disappointed that it did not include smooth, anti-aliased corners.</p>
<p>I then did some more google-trawling and found <a href="http://www.aspcode.net/JQuery-Curvy-Corners.aspx">this post</a>, which contained a modified version of <a href="http://www.curvycorners.net/">Curvy Corners</a> for use with JQuery. Now this script was much much better.</p>
<p>However&#8230;the filesize was a massive 40kb, way too big for production use, and to make things worse the code was not compatible with <a href="http://dean.edwards.name/packer/">packer</a> so I could not reduce the filesize.</p>
<p>Well, I got busy, and fixed the errors. It is now fully packer friendly meaning easy rounded corners in JQuery at only <del>9kb</del> <del>8kb</del> <del>15kb</del> <del>20kb</del> <del>16kb</del> <ins>10kb</ins>. Excellent. Read more for the download link.</p>
<p><span id="more-91"></span></p>
<h2>Demo and download</h2>
<div class="roundme" style="margin:32px 0px 32px !important; padding:4px;background-color:#E2ECEE;border:1px solid #9DDAE6">See the <a href="http://blue-anvil.com/jquerycurvycorners/test.html">demo page here</a></div>
<p>You can also grab the plugin from <a href="http://code.google.com/p/jquerycurvycorners/">Google Code</a>.</p>
<p class="center"><a class="downloadlink dlimg" href="http://blue-anvil.com/download/list" title="Version 1.9 downloaded 115592 times" ><img src="http://blue-anvil.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download JQuery Curvy Corners Version 1.9" /></a></p>
<p>The packed version is only 10kb, the uncompressed version is 23kb (thats half the size of the original script!).</p>
<h2>Quick example</h2>
<p>To make a curvy cornered box simply use:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.round_this'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">corner</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Thats all there is too it. A great script!</p>
<p>For more information on Curvy Corners, check out its <a href="http://www.curvycorners.net/">official site</a>.!</p>
<p><em>*Edit:</em> Found a small error in IE7 with the backgroundPosition property, fixed now. New file uploaded.</p>
<p><em>*Edit 2 &#8211; 25th Sep 07:</em> More optimizations, smaller file!</p>
<p><em>*Edit 3 &#8211; 29th Sep 07:</em> More optimizations, smaller file, and <a href="http://blue-anvil.com/jquerycurvycorners/test.html">demo page</a> up!</p>
<p><em>*Edit 4 &#8211; 6th March 08:</em> New version up with better background image support.</p>
<p><em>*Edit 5 &#8211; 19th May 08:</em> No extra padding, safari fixed, larger filesize to reduce overhead and increase speed.</p>
<p><em>*Edit 6 &#8211; 9th Aug 08:</em> General fixes from feedback</p>
<p><em>*Edit 7 &#8211; 7th Oct 08:</em>  Major overhaul to improve compatibility with other plugins</p>
<p><em>*Edit 8 &#8211; 2nd June 09:</em>  Now compatible with jquery 1.3.2 &#8211; All future updates will be on Google Code (http://code.google.com/p/jquerycurvycorners/) &#8211; Hence im closing comments here. Post your contributions either on google code or in the forum.</p>
]]></content:encoded>
			<wfw:commentRss>http://blue-anvil.com/archives/anti-aliased-rounded-corners-with-jquery/feed/</wfw:commentRss>
		<slash:comments>307</slash:comments>
		</item>
		<item>
		<title>Defining Success as a Designer</title>
		<link>http://blue-anvil.com/archives/defining-success-as-a-designer/</link>
		<comments>http://blue-anvil.com/archives/defining-success-as-a-designer/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 23:06:02 +0000</pubDate>
		<dc:creator>Mike Jolley</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[Mike Jolley]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://82.110.105.91/blue-anvil.co.uk/?p=82</guid>
		<description><![CDATA[A few days ago Jonathan Wold, a new friend of mine, tagged me to write about my success as a designer. Well, I&#8217;ve dragged myself away from my client work to write about it, even though in my eyes I&#8217;m not greatly successful, yet. O, and as an added bonus you get to see old [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blue-anvil.com/img/success.gif" class="floatleft" style="float:left;margin:4px 4px 4px 0;" alt="Success" />A few days ago <a href="http://jonathanwold.com">Jonathan Wold</a>, a new friend of mine, <a href="http://jonathanwold.com/blog/2007/06/defining-success-as-a-designer.html">tagged me</a> to write about my success as a designer. Well, I&#8217;ve dragged myself away from my client work to write about it, even though in my eyes I&#8217;m not greatly successful, yet.</p>
<p>O, and as an added bonus you get to see old pictures of me and download some games I made years ago! lol</p>
<p><span id="more-82"></span></p>
<h2>1. How did you get started in the business?</h2>
<p><img src='http://blue-anvil.com/wp-content/uploads/2007/06/mfv.thumbnail.jpg' class="floatleft" alt='Younger Young me' />Well, I dont remember the exact date, but in year 9 at school I believe (2000/2001) I started to have an interest in making computer games using a program called <a href="http://www.gamemaker.nl/">gamemaker</a>, it was then when I wanted to have a website to showcase my amateur creations.</p>
<p>I discovered Frontpage Express, yes that evil program from Microsoft. My first ever site was called &#8220;MJ2K games&#8221; and had some horrible URL which was impossible to remember. The layout was of course table based, but served its purpose.</p>
<p class="center"><img src='http://blue-anvil.com/wp-content/uploads/2007/06/mj2knew320x240.gif' alt='MJ2k' /></p>
<h3><em>*Offtopic</em></h3>
<p>I had a dig around and found some of my old games, hehe, you can download the best ones below, but if they blow up your computer I take no responsibility; use at own risk.</p>
<p class="center"><img src='http://blue-anvil.com/wp-content/uploads/2007/06/pp_logo.gif' alt='Penguin Panic' /></p>
<p class="center"><a href="http://blue-anvil.com/downloads/PenguinPanic1.9.zip">Download penguin panic</a> // <a href='http://blue-anvil.com/wp-content/uploads/2007/06/navpag1.jpg' rel="lightbox" title='PP Screenshot'>Screenshot</a></p>
<p class="center"><img src='http://blue-anvil.com/wp-content/uploads/2007/06/pplu_logo.gif' alt='Penguin panic lock up' /></p>
<p class="center"><a href="http://blue-anvil.com/downloads/PenguinPanicLockUp.zip">Download penguin panic lock up</a> // <a href='http://blue-anvil.com/wp-content/uploads/2007/06/ppss.jpg' rel="lightbox" title='PP lock up screenshot'>Screenshot</a></p>
<h3><em>*Back on topic</em></h3>
<p>It was after that, I got hooked to websites. I made clan sites, fan sites etc, and gradually learned more about HTML.</p>
<p><img src='http://blue-anvil.com/wp-content/uploads/2007/06/moi.thumbnail.jpg' class="floatright" alt='Old me' />In 2004 I started at college, doing a computer course. There was not much website work until the second year. I created a website for a school, it was still table based though. It was at this point I started using dreamweaver to make sites. During the lessons I was amazed by a site this guy made using CSS, this was when my passion for websites truly began.</p>
<p>From that point I self-studied in the majority of my free time, bagging small jobs for friends. I focused my learning on CSS and XHTML, which was a great decision as its got me where I am today. I also created &#8220;Blue Anvil&#8221;, not the wonderful site you see today, just a basic site. I dropped dreamweaver, and since then I&#8217;ve used text editors.</p>
<p><img src='http://blue-anvil.com/wp-content/uploads/2007/06/newblueanvilbubble.gif' class="floatleft" alt='Blue Anvil' />In 2005/2006 I took web design up &#8220;full-time&#8221;, even though still at college, I registered as self-employed and have been working happily as a freelancer since. Since then I&#8217;ve expanded my skill-set to include PHP and JS, which have also been a great help at college.</p>
<p>At the end of 2006 I started getting into <a href="http://wordpress.org/">wordpress</a>, this has proved to be one of main things I work on.</p>
<h2>2. What kept you going in those early years?</h2>
<p>Shear determination to be the best, and the joy of creating things. Website creation is fun in my eyes, and I love getting ideas that are in my head on screen.</p>
<h2>3a. Did you ever feel like you weren’t good enough or you would never make it in this industry?</h2>
<p>Yes I did, mainly because I saw all the fantastic stuff other designers were doing. I did nearly give up after a bad client experience, but in the end that made me more determined, and now I believe my work is <ins datetime="2007-06-15T22:47:35+00:00">nearly</ins> top notch <img src='http://blue-anvil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<h2>3b. How did you work through that?</h2>
<p>Perseverance, learning from mistakes, and talking to other designers. I also asked peoples opinions more, because I always criticized my own work too much.</p>
<h2>4. Do you look at others today and think “Wow, I wish I were that good”?</h2>
<p>Sometimes, but at the end of the day I am what I am, and know even that if I see some fantastic work by someone else, Ill get to that level one day.</p>
<p>In fact, seeing excellent work motivates me to increase my own standards.</p>
<h2>5. How do you measure success?</h2>
<p>I measure my success on client satisfaction, wage, and popularity.</p>
<p>Popularity of my blog is important to me, I don&#8217;t want to blog to nothingness, and it shows people are genuinely interested in what I do if my blog is popular.</p>
<p>Wage is important because obviously I have living costs <img src='http://blue-anvil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>But client satisfaction &#8211; If I do a job and the client says &#8220;wow, thats great&#8221; then I consider that to be the greatest success of all.</p>
<h2>6. By your standard, do you think you are successful?</h2>
<p>To a certain degree perhaps, but I know there is always room for improvement, and ways to being even more successful. I think i&#8217;m definitely on my way to being successful, so I will continue doing what I do, and improve as I go.</p>
<p class="center"><img src="http://blue-anvil.com/mikejolley.jpg" alt="Me now" title="Me now" /><br/><em>Me now</em></p>
<h2>Who&#8217;s next?</h2>
<p>I&#8217;m tagging friends <a href="http://designbit.co.uk/">Anthony Brewitt</a>, <a href="http://www.evoart.info/">William Smith</a>, <a href="http://green-beast.com/">Mike Cherim</a>, and <a href="http://www.manicmelon.com/">Kevin Barber</a>. Look forward to your posts <img src='http://blue-anvil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blue-anvil.com/archives/defining-success-as-a-designer/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>&#8220;Rivera Web&#8221; Icon set</title>
		<link>http://blue-anvil.com/archives/rivera-web-icon-set/</link>
		<comments>http://blue-anvil.com/archives/rivera-web-icon-set/#comments</comments>
		<pubDate>Fri, 30 Mar 2007 20:47:56 +0000</pubDate>
		<dc:creator>Mike Jolley</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[Rivera Web Icons icon set]]></category>

		<guid isPermaLink="false">http://82.110.105.91/blue-anvil.co.uk/?p=52</guid>
		<description><![CDATA[This is my first set I have ever completed for release, Ive always enjoyed making little icons but Ive never felt compelled to released them. Well at last Ive dedicated some time to getting a set complete and ready to distribute. I hope they please you, and you enjoy them as much as I enjoyed [...]]]></description>
			<content:encoded><![CDATA[<p><img class="floatleft" style="float:left;margin:4px 4px 4px 0;" src="http://blue-anvil.com/img/rivera.gif" alt="Rivera Icons" />This is my first set I have ever completed for release, Ive always enjoyed making little icons but Ive never felt compelled to released them. Well at last Ive dedicated some time to getting a set complete and ready to distribute.</p>
<p>I hope they please you, and you enjoy them as much as I enjoyed making them! Better yet, enjoy them more than I enjoyed making them because some of them were a pain in the butt to make lol.</p>
<p><span id="more-52"></span><br />
<!--adsense--></p>
<p>In total their are 118 icons in each size set, sizes are <strong>16&#215;16 ($20 USD)</strong>, <strong>24&#215;24 ($30 USD)</strong>, and <strong>32&#215;32 ($30 USD)</strong>. All three sets together cost <strong>$65 USD</strong>. They all come in .png format and are suitable for the web.</p>
<p>To purchase, please use the buy now buttons and make sure to provide your email address, or contact me separately, so I can send you the icons via email.</p>
<p>Icon requests via comments please, I plan to grow the collection if need be.</p>
<h3>Whats with the name?</h3>
<p>Why are they called Rivera? Because <a href="http://www.automatorworld.com ">Steve Weintraub</a> on gtalk said the colours reminded him of work by Diego Rivera, and I liked the name so it was settled.</p>
<h3>Stop jabbering, show me some icons!</h3>
<h4>Rivera Web 32&#215;32 Icon set (118 icons)</h4>
<p style="text-align:center;display:block"><img src="http://blue-anvil.com/img/preview_32.jpg" alt="32x32 icon set" /></p>
<form style="text-align:center;display:block" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_xclick" />
<input name="business" type="hidden" value="mike.jolley@me.com" />
<input name="item_name" type="hidden" value="Rivera Web Icon Set 32x32" />
<input name="item_number" type="hidden" value="ico32" />
<input name="amount" type="hidden" value="30.00" />
<input name="no_shipping" type="hidden" value="0" />
<input name="no_note" type="hidden" value="1" />
<input name="currency_code" type="hidden" value="USD" />
<input name="lc" type="hidden" value="GB" />
<input name="bn" type="hidden" value="PP-BuyNowBF" />
<input alt="Make payments with PayPal - it's fast, free and secure!" name="submit" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" type="image" /> <img src="https://www.paypal.com/en_GB/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /><br />
</form>
<h4>Rivera Web 24&#215;24 Icon set (118 icons)</h4>
<p style="text-align:center;display:block"><img src="http://blue-anvil.com/img/preview_24.jpg" alt="24x24 icon set" /></p>
<form style="text-align:center;display:block" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_xclick" />
<input name="business" type="hidden" value="mike.jolley@me.com" />
<input name="item_name" type="hidden" value="Rivera Web Icon Set 24x24" />
<input name="item_number" type="hidden" value="ico24" />
<input name="amount" type="hidden" value="30.00" />
<input name="no_shipping" type="hidden" value="0" />
<input name="no_note" type="hidden" value="1" />
<input name="currency_code" type="hidden" value="USD" />
<input name="lc" type="hidden" value="GB" />
<input name="bn" type="hidden" value="PP-BuyNowBF" />
<input alt="Make payments with PayPal - it's fast, free and secure!" name="submit" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" type="image" /> <img src="https://www.paypal.com/en_GB/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /><br />
</form>
<h4>Rivera Web 16&#215;16 Icon set (118 icons)</h4>
<p style="text-align:center;display:block"><img src="http://blue-anvil.com/img/preview_16.jpg" alt="16x16 icon set" /></p>
<form style="text-align:center;display:block" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_xclick" />
<input name="business" type="hidden" value="mike.jolley@me.com" />
<input name="item_name" type="hidden" value="Rivera Web Icon Set 16x16" />
<input name="item_number" type="hidden" value="ico16" />
<input name="amount" type="hidden" value="20.00" />
<input name="no_shipping" type="hidden" value="0" />
<input name="no_note" type="hidden" value="1" />
<input name="currency_code" type="hidden" value="USD" />
<input name="lc" type="hidden" value="GB" />
<input name="bn" type="hidden" value="PP-BuyNowBF" />
<input alt="Make payments with PayPal - it's fast, free and secure!" name="submit" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" type="image" /> <img src="https://www.paypal.com/en_GB/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /><br />
</form>
<h4>Get all 3 sets:</h4>
<p>To order all 3 sets (16&#215;16, 24&#215;24, 32&#215;32) use the buy button below. After receiving payment I will email you the icon pack in zip format.</p>
<form style="text-align:center;display:block" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_xclick" />
<input name="business" type="hidden" value="mike.jolley@me.com" />
<input name="item_name" type="hidden" value="Rivera Web Icon Set" />
<input name="item_number" type="hidden" value="ico" />
<input name="amount" type="hidden" value="65.00" />
<input name="no_shipping" type="hidden" value="0" />
<input name="no_note" type="hidden" value="1" />
<input name="currency_code" type="hidden" value="USD" />
<input name="lc" type="hidden" value="GB" />
<input name="bn" type="hidden" value="PP-BuyNowBF" />
<input alt="Make payments with PayPal - it's fast, free and secure!" name="submit" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" type="image" /> <img src="https://www.paypal.com/en_GB/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /><br />
</form>
]]></content:encoded>
			<wfw:commentRss>http://blue-anvil.com/archives/rivera-web-icon-set/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>miniXFN Icon set &amp; XFN CSS implementation</title>
		<link>http://blue-anvil.com/archives/minixfn-icon-set-xfn-css-implementation/</link>
		<comments>http://blue-anvil.com/archives/minixfn-icon-set-xfn-css-implementation/#comments</comments>
		<pubDate>Wed, 14 Feb 2007 14:03:30 +0000</pubDate>
		<dc:creator>Mike Jolley</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[icon]]></category>
		<category><![CDATA[microformat]]></category>
		<category><![CDATA[XFN]]></category>

		<guid isPermaLink="false">http://82.110.105.91/blue-anvil.co.uk/?p=42</guid>
		<description><![CDATA[XFN (XHTML Friends Network) is a microformat which represents relationships between people with hyperlinks and the use of a simple HTML tag. They can represent colleagues, contacts, sweethearts, friends and more! Based on the XFN icon set by Wolfgang Bartelme I have created a small set of mini icons (9&#215;10 pixels) to represent these links [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blue-anvil.com/miniXFNicons/xfnpost.jpg" class="floatleft" style="float:left;margin:0 4px 4px 0" alt="XML mini Icons" /></p>
<p>XFN (XHTML Friends Network) is a microformat which represents relationships between people with hyperlinks and the use of a simple HTML tag.</p>
<p>They can represent colleagues, contacts, sweethearts, friends and more!</p>
<p>Based on the XFN icon set by <a href="http://bartelme.at/">Wolfgang Bartelme</a> I have created a small set of mini icons (9&#215;10 pixels) to represent these links between people. I have also made a CSS file which shows the relevant icon when the correct XFN rel tag is present.</p>
<p><span id="more-42"></span></p>
<h2>How to create an XFN link</h2>
<p>XFN links are very simple to create, they simply list the relationships in a &#8216;rel&#8217; tag in the anchor, for example:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a href=&quot;http://blue-anvil.com&quot; rel=&quot;me&quot;&gt;Blue Anvil&lt;/a&gt;</pre></div></div>

<p>The above example show a link to my site, therefore marked as &#8216;me&#8217; in the &#8216;rel&#8217; tag. To create your own, you can use the official <a href="http://gmpg.org/xfn/creator">XFN creator</a> which is a very nice, simple, tool.</p>
<h2>My Icons</h2>
<p><img class="floatleft" src="http://blue-anvil.com/miniXFNicons/allicons.gif" alt="Mini XFN icons" /></p>
<p>First off, the icons. As i said before, i based them on the icons by <a href="http://bartelme.at/">Wolfgang Bartelme</a> found on the <a href="http://www.factorycity.net/projects/microformats-icons/">Microformats icons website</a>.</p>
<p><a href="http://blue-anvil.com/download/miniXFN_icons.zip">Download the icons here.</a> &#8211; Downloaded 885 times.
<p>My mini-icons are free to use, just don&#8217;t claim them as your own, and a link would be nice <img src='http://blue-anvil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>My CSS</h2>
<p>My CSS file, basically, looks for a present REL tag, then styles the link based on the present styles. It cascades, picking out the right icon depending on the rel tag.</p>
<p>It works with modern browsers that support CSS pattern matching.</p>
<p><a href="http://blue-anvil.com/download/XFNiconsCSS.zip">Download the CSS file here.</a> &#8211; Downloaded 785 times.<br />
<h2>See it all working</h2>
<p>I have set up a demo page showing the icons and css file, which you can <a href="http://blue-anvil.com/miniXFNicons/demo.html">view here.</a></p>
<p>I hope you find my icons prove useful!</p>
]]></content:encoded>
			<wfw:commentRss>http://blue-anvil.com/archives/minixfn-icon-set-xfn-css-implementation/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Using Image replacement techniques</title>
		<link>http://blue-anvil.com/archives/using-image-replacement-techniques/</link>
		<comments>http://blue-anvil.com/archives/using-image-replacement-techniques/#comments</comments>
		<pubDate>Wed, 29 Nov 2006 15:02:55 +0000</pubDate>
		<dc:creator>Mike Jolley</dc:creator>
				<category><![CDATA[Accessibility, Standards & SEO]]></category>
		<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[image replacement]]></category>
		<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://82.110.105.91/blue-anvil.co.uk/?p=29</guid>
		<description><![CDATA[This week Ive been trying out a lot of image replacement techniques in main headings, and their are quite a few available. If you have a graphical header logo on a website, with the sites name, often you wont want to have another heading as plain text. Yet, you should want to have the heading [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blue-anvil.com/img/imgrep.gif" class="floatleft" style="float:left; margin:4px 4px 4px 0"alt="Image Replacement" />This week Ive been trying out a lot of image replacement techniques in main headings, and their are quite a few available. If you have a graphical header logo on a website, with the sites name, often you wont want to have another heading as plain text. Yet, you should want to have the heading readable by screen-readers, and you also want the SEO benefits of the heading.</p>
<p>Ive rounded up my favorite methods, and this entry will show you how to use them, and when to use them.</p>
<p><span id="more-29"></span><br />
<!--adsense--></p>
<h2>Method 1 &#8211; Stick the image in the Heading tag</h2>
<p>This method simple involves putting your logo in a heading tag, and giving it relevant alt and title attributes. It works well with simple logos, but if you want cool rollovers etc, you will need a different method.</p>
<h3>(X)HTML</h3>
<pre><code>&lt;h1&gt;
   &lt;a href="home.htm" title="homepage"&gt;
      &lt;img src="logo.gif" alt="Site name" /&gt;
   &lt;/a&gt;
&lt;/h1&gt;</code></pre>
<p>Suits &#8211; Simple logo&#8217;s with an alt tag, and possibly a link</p>
<p>Pro&#8217;s &#8211; Alt text should remain visible with images off, logo visible when CSS disabled</p>
<p>Con&#8217;s &#8211; No css rollovers, you must resort to Javascript</p>
<h2>Method 2 &#8211; Phark Method &#8211; modified</h2>
<p><!--adsense#postad-->
<p>This method involved using a CSS background image to show the logo. If CSS is disabled you still see the heading text, however with images off and CSS on the logo is hidden, which is a shame.</p>
<p>It works by indenting the text out of sight, and showing the background image. I use this one when I have a transparent logo, e.g. A transparent png, since other methods (like Gilder/Levin below) show the heading text underneath the image.</p>
<p>My modded code below also allows pretty rollovers, a nice addition.</p>
<h3>(X)HTML</h3>
<pre><code>&lt;h1&gt;
    &lt;a title="Homepage" href="home.htm"&gt;
    &lt;span&gt;
        Site name
    &lt;/span&gt;&lt;/a&gt;
&lt;/h1&gt;</code></pre>
<h3>CSS</h3>
<pre><code>h1 a span
{
    	height:164px;
    	width:219px;
    	background: url('logo.png') no-repeat;
    	text-indent: -5000px;
}
h1 a:hover span, div#header h1 a:focus span
{
    	height:164px;
    	width:219px;
    	background: url('logoHover.png') no-repeat;
    	text-indent: -5000px;
}</code></pre>
<p>Suits &#8211; Headings when you want a link, and your logo is transparent.</p>
<p>Pro&#8217;s &#8211; Text displayed when images off, transparent images work, css rollovers work.</p>
<p>Con&#8217;s &#8211; Breaks with images off and CSS on.</p>
<h2>Method 3 &#8211; Gilder/Levin Method &#8211; modified</h2>
<p>This method is my favorite when using opaque images. It works by hiding the text with a background image via CSS, it does however need some un-semantic markup; but thats a small price to pay. The span is basically positioned to cover up the header text, thats the reason it needs to be opaque. And remember; the width and height must match the image!</p>
<h3>(X)HTML</h3>
<pre><code>&lt;h1 id="header"&gt;
	Site name&lt;span&gt;&lt;/span&gt;
&lt;/h1&gt;</code></pre>
<h3>CSS</h3>
<pre><code>h1#header
{
      margin:0; padding:0;
      position:relative;
      width:316px; height:29px;
      overflow:hidden;
}
h1#header span
{
      display:block;
      position:absolute;
      width:316px; height:29px;
      margin:0; padding:0;
      background:url(logo.gif) top left no-repeat;
}</code></pre>
<p>Suits &#8211; Headings when you want a link, and your logo is opaque.</p>
<p>Pro&#8217;s &#8211; Text displayed when images off and also when CSS off.</p>
<p>Con&#8217;s &#8211; Cannot use a transparent image.</p>
<h2>Conclusion</h2>
<p>So they were my favorite methods, but are they best? DO you have better solutions? Leave a comment and tell me your views on image replacement.</p>
<h2>Related reading</h2>
<ul>
<li><a href="http://www.mezzoblue.com/tests/revised-image-replacement/">Revised Image Replacement</a></li>
<li><a href="http://www.alistapart.com/articles/javascriptreplacement">JavaScript Image Replacement</a></li>
<li><a href="http://www.stuffandnonsense.co.uk/archives/mir_image_replacement.html">MIR: Image Replacement</a></li>
<li><a href="http://www.stopdesign.com/articles/replace_text/">Using Background-Image to Replace Text</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blue-anvil.com/archives/using-image-replacement-techniques/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

