<?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>THE BLOG &#187; HTML</title>
	<atom:link href="http://www.carl-topham.com/theblog/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.carl-topham.com/theblog</link>
	<description>Creative knowledge, shared</description>
	<lastBuildDate>Fri, 30 Jul 2010 13:32:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ie 7 min-width and button bug</title>
		<link>http://www.carl-topham.com/theblog/2010/07/27/ie-7-min-width-and-button-bug/</link>
		<comments>http://www.carl-topham.com/theblog/2010/07/27/ie-7-min-width-and-button-bug/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 10:34:04 +0000</pubDate>
		<dc:creator>Carl</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.carl-topham.com/theblog/2010/07/27/ie-7-min-width-and-button-bug/</guid>
		<description><![CDATA[A bug for anyone needing ie7 compatible forms using a min-width on the buttons. This also affects ie8 running in compatibility mode. input.submitbutton { min-width: 100px; } If you are using a min-width for your form submit buttons then sadly ie7 will align button text to the right of the button. It is un-fixable with [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.carl-topham.com%2Ftheblog%2F2010%2F07%2F27%2Fie-7-min-width-and-button-bug%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.carl-topham.com%2Ftheblog%2F2010%2F07%2F27%2Fie-7-min-width-and-button-bug%2F&amp;source=carldashtopham&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>A bug for anyone needing ie7 compatible forms using a min-width on the buttons. This also affects ie8 running in compatibility mode.</p>
<p>input.submitbutton<br />
{<br />
    min-width: 100px;<br />
}</p>
<p>If you are using a min-width for your form submit buttons then sadly ie7 will align button text to the right of the button. It is un-fixable with just css and the only pure solution is to remove the min-width and either use width:auto; or use width:123px;</p>
<p>input.submitbutton<br />
{<br />
    width: 100px;<br />
}</p>
<p>If however you don’t mind using javascript you can try using the ie7-js which uses javascript to bring any ie browser less than ie8/ie9 to work as the latest one. You can read more about ie7-js on google code: <a href="http://code.google.com/p/ie7-js/">http://code.google.com/p/ie7-js/</a></p>
<p>As a bonus this can also fix any transparent png issues found in ie6!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.carl-topham.com/theblog/2010/07/27/ie-7-min-width-and-button-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery + Firebug = reduced repetitive work</title>
		<link>http://www.carl-topham.com/theblog/2010/04/13/jquery-firebug-reduced-repetitive-work/</link>
		<comments>http://www.carl-topham.com/theblog/2010/04/13/jquery-firebug-reduced-repetitive-work/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 14:07:13 +0000</pubDate>
		<dc:creator>Carl</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.carl-topham.com/theblog/2010/04/13/jquery-firebug-reduced-repetitive-work/</guid>
		<description><![CDATA[Have you ever had a page that needed styles applying to certain elements again and again (and again) in some sort of pattern. The finished page could have no js either. I just had a long page of tables that the 3rd column had to be formatted differently and it was a pain so I [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.carl-topham.com%2Ftheblog%2F2010%2F04%2F13%2Fjquery-firebug-reduced-repetitive-work%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.carl-topham.com%2Ftheblog%2F2010%2F04%2F13%2Fjquery-firebug-reduced-repetitive-work%2F&amp;source=carldashtopham&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Have you ever had a page that needed styles applying to certain elements again and again (and again) in some sort of pattern. The finished page could have no js either. I just had a long page of tables that the 3rd column had to be formatted differently and it was a pain so I needed a way around the problem. </p>
<p>Write a quick bit of jQuery to apply to to the page and preview it in the browser. Then using firebug (firefox plugin), cmd/right click the document root element and click “copy HTML”. Just paste that into a new file and you now have the static HTML which the jQuery applied the styles to. Just remember to delete the jQuery code from the new doc and you are done.</p>
<p>This example adds the class “value” to all the third “td” elements in the document:</p>
<p> $(document).ready(function() {</p>
<p>      var str = &#8220;:nth-child(3n)&#8221;;<br />
      $(&#8220;tr td&#8221; + str).addClass(&#8216;value&#8217;);<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<br />
  });</p>
<p>Resources:<br />
<a href="http://api.jquery.com/nth-child-selector/">http://api.jquery.com/nth-child-selector/</a><br />
<a href="http://stackoverflow.com/questions/2184862/saving-the-manipulated-dom-html-after-editing-it-with-firebug">http://stackoverflow.com/questions/2184862/saving-the-manipulated-dom-html-after-editing-it-with-firebug</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.carl-topham.com/theblog/2010/04/13/jquery-firebug-reduced-repetitive-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 &amp; CSS3 Learning and Resources</title>
		<link>http://www.carl-topham.com/theblog/2010/01/22/html5-css3-learning-resources/</link>
		<comments>http://www.carl-topham.com/theblog/2010/01/22/html5-css3-learning-resources/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 12:34:21 +0000</pubDate>
		<dc:creator>Carl</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.carl-topham.com/theblog/?p=281</guid>
		<description><![CDATA[EDIT: New links added 25-01-2010 So you have probably been hearing a lot about HTML5 and CSS3 on the internet in the recent months and weeks. What are they? What&#8217;s the deal with them? Why are they important and should I be doing anything yet?.. are a few questions you might have. I have been [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.carl-topham.com%2Ftheblog%2F2010%2F01%2F22%2Fhtml5-css3-learning-resources%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.carl-topham.com%2Ftheblog%2F2010%2F01%2F22%2Fhtml5-css3-learning-resources%2F&amp;source=carldashtopham&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>EDIT: New links added 25-01-2010</p>
<p>So you have probably been hearing a lot about HTML5 and CSS3 on the internet in the recent months and weeks. What are they? What&#8217;s the deal with them? Why are they important and should I be doing anything yet?.. are a few questions you might have. I have been reading articles and saving links for a few months now so I thought I better share all the goodies with everyone else and hopefully you will be able to answer most if not all of your questions. I have tried to categorize as best I can but there is some overlap! Enjoy!</p>
<p><strong>BOTH</strong></p>
<p><a href="http://net.tutsplus.com/tutorials/html-css-techniques/html-5-and-css-3-the-techniques-youll-soon-be-using/" target="_blank">http://net.tutsplus.com/tutorials/html-css-techniques/html-5-and-css-3-the-techniques-youll-soon-be-using/</a></p>
<p><strong>HTML 5</strong></p>
<p>What is supported where<br />
<a href="http://a.deveria.com/caniuse/" target="_blank">http://a.deveria.com/caniuse/</a></p>
<p>HTML5 feature sand usage<br />
<a href="http://diveintohtml5.org/" target="_blank">http://diveintohtml5.org/</a></p>
<p>A Cheat sheet for html 5<br />
<a href="http://woorkup.com/wp-content/uploads/2009/12/HTML5-Visual-Cheat-Sheet.pdf" target="_blank">http://woorkup.com/wp-content/uploads/2009/12/HTML5-Visual-Cheat-Sheet.pdf</a></p>
<p>HTML5 sites now!<br />
<a href="http://seogadget.co.uk/html5-examples-in-the-wild/" target="_blank">http://seogadget.co.uk/html5-examples-in-the-wild/</a></p>
<p>HTML5 Tutorials<br />
<a href="http://www.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/" target="_blank">http://www.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/</a><br />
<a href="http://html5tutorial.net/" target="_blank">http://html5tutorial.net/</a></p>
<p><strong>CSS 3</strong></p>
<p>General CSS 3<br />
<a href="http://www.smashingmagazine.com/2009/12/16/stronger-better-faster-design-with-css3/" target="_blank">http://www.smashingmagazine.com/2009/12/16/stronger-better-faster-design-with-css3/</a><br />
<a href="http://designshack.co.uk/tutorials/introduction-to-css3-part-1-what-is-it" target="_blank">http://designshack.co.uk/tutorials/introduction-to-css3-part-1-what-is-it</a><br />
<a href="http://www.exforsys.com/tutorials/css3.html" target="_blank">http://www.exforsys.com/tutorials/css3.html</a></p>
<p>CSS3 Visual effects<br />
<a href="http://www.smashingmagazine.com/2010/01/25/the-new-hotness-using-css3-visual-effects/" target="_self">http://www.smashingmagazine.com/2010/01/25/the-new-hotness-using-css3-visual-effects/</a></p>
<p>CSS3 layout<br />
<a href="http://designshack.co.uk/tutorials/introduction-to-css3-part-5-multiple-columns" target="_blank">http://designshack.co.uk/tutorials/introduction-to-css3-part-5-multiple-columns</a></p>
<p>CSS3 backgrounds<br />
<a href="http://designshack.co.uk/tutorials/introduction-to-css3-part-6-backgrounds" target="_blank">http://designshack.co.uk/tutorials/introduction-to-css3-part-6-backgrounds</a></p>
<p>CSS3 User interfaces<br />
<a href="http://designshack.co.uk/tutorials/introduction-to-css3-part-4-user-interface" target="_blank">http://designshack.co.uk/tutorials/introduction-to-css3-part-4-user-interface</a><br />
<a href="http://www.zurb.com/playground/css3-polaroids" target="_blank">http://www.zurb.com/playground/css3-polaroids</a></p>
<p>CSS 3 text effects<br />
<a href="http://designshack.co.uk/tutorials/introduction-to-css3-part-3-text-effects" target="_blank">http://designshack.co.uk/tutorials/introduction-to-css3-part-3-text-effects</a></p>
<p>CSS 3 Borders<br />
<a href="http://designshack.co.uk/tutorials/introduction-to-css3-part-2-borders" target="_blank">http://designshack.co.uk/tutorials/introduction-to-css3-part-2-borders</a></p>
<p>CSS 3 for ie6+<br />
<a href="http://www.keithclark.co.uk/labs/ie-css3/" target="_blank">http://www.keithclark.co.uk/labs/ie-css3/</a></p>
<p>As always if you have some great links you have found yourself or you have an article about this then drop a comment and I will update the post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.carl-topham.com/theblog/2010/01/22/html5-css3-learning-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Horizontal menus from a list</title>
		<link>http://www.carl-topham.com/theblog/2009/08/17/horizontal-menus-from-a-list/</link>
		<comments>http://www.carl-topham.com/theblog/2009/08/17/horizontal-menus-from-a-list/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 18:53:48 +0000</pubDate>
		<dc:creator>Carl</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.carl-topham.com/theblog/?p=215</guid>
		<description><![CDATA[Having learnt about menu&#8217;s using lists recently, I have decided to share because I&#8217;m nice! Yeah you have probably seen it before in many places and yeah I am waaaaaaaay behing the curve finding out about it but since I&#8217;m pretty sure I&#8217;m not last it might help someone else! It&#8217;s pretty simple really. Once [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.carl-topham.com%2Ftheblog%2F2009%2F08%2F17%2Fhorizontal-menus-from-a-list%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.carl-topham.com%2Ftheblog%2F2009%2F08%2F17%2Fhorizontal-menus-from-a-list%2F&amp;source=carldashtopham&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Having learnt about menu&#8217;s using lists recently, I have decided to share because I&#8217;m nice! Yeah you have probably seen it before in many places and yeah I am waaaaaaaay behing the curve finding out about it but since I&#8217;m pretty sure I&#8217;m not last it might help someone else! It&#8217;s pretty simple really. Once you make a few different menus and see what happens and you will soon get the hang of it&#8230;</p>
<p>First start with a list. I am assuming the menu will be in a div called &#8220;nav&#8221;. It&#8217;s not necessary but if you have other lists then you might end up screwing them up. If its not called nav then just drop the #nav or change it to be relevant to your div&#8217;s name.\</p>
<p>[code lang="html"]</p>
<div id="nav">
<ul>
<li><a href="#&gt;link item&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=">link item</a></li>
<li><a href="#&gt;link item&lt;/a&gt;&lt;/li&gt; &lt;ul&gt; &lt;/nav&gt;&lt;br /&gt; [/code]&lt;/p&gt; &lt;p&gt;Then add this to your style sheet (I also assume you are using a style sheet, if not then you might need to learn that too!)&lt;br /&gt; [code lang="><br />
#nav ul {<br />
list-style-type:none; /* remove bullets */<br />
margin:0;<br />
padding:0;<br />
text-align:center; /* center the menu (menu will sit in the middle of the horizontal space */<br />
}</a></p>
<p><a href="#&gt;link item&lt;/a&gt;&lt;/li&gt; &lt;ul&gt; &lt;/nav&gt;&lt;br /&gt; [/code]&lt;/p&gt; &lt;p&gt;Then add this to your style sheet (I also assume you are using a style sheet, if not then you might need to learn that too!)&lt;br /&gt; [code lang=">#nav ul li {<br />
display:inline;<br />
}</a></p>
<p><a href="#&gt;link item&lt;/a&gt;&lt;/li&gt; &lt;ul&gt; &lt;/nav&gt;&lt;br /&gt; [/code]&lt;/p&gt; &lt;p&gt;Then add this to your style sheet (I also assume you are using a style sheet, if not then you might need to learn that too!)&lt;br /&gt; [code lang=">#nav ul li a {<br />
text-decoration:none; /* remove any text decoration */<br />
padding:3px 10px; /* make a box around the text */<br />
color:#fff; /* text colour */<br />
background:#036; /* box colour */<br />
}</a></p>
<p><a href="#&gt;link item&lt;/a&gt;&lt;/li&gt; &lt;ul&gt; &lt;/nav&gt;&lt;br /&gt; [/code]&lt;/p&gt; &lt;p&gt;Then add this to your style sheet (I also assume you are using a style sheet, if not then you might need to learn that too!)&lt;br /&gt; [code lang=">#nav ul li a:hover { /* for the roll over */<br />
color:#000; /* text colour */<br />
background:#fff; /* box colour */<br />
}<br />
[/code]</a></p>
<p><a href="#&gt;link item&lt;/a&gt;&lt;/li&gt; &lt;ul&gt; &lt;/nav&gt;&lt;br /&gt; [/code]&lt;/p&gt; &lt;p&gt;Then add this to your style sheet (I also assume you are using a style sheet, if not then you might need to learn that too!)&lt;br /&gt; [code lang=">There you go. Have a menu! Any question&#8217;s then ask away</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.carl-topham.com/theblog/2009/08/17/horizontal-menus-from-a-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Meta Tags</title>
		<link>http://www.carl-topham.com/theblog/2007/03/06/tag-youre-it/</link>
		<comments>http://www.carl-topham.com/theblog/2007/03/06/tag-youre-it/#comments</comments>
		<pubDate>Tue, 06 Mar 2007 21:02:31 +0000</pubDate>
		<dc:creator>Carl</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.carl-topham.com/theblog/?p=23</guid>
		<description><![CDATA[The tags in question are META tags. They are the bits of code that sit in between the &#60;HEAD&#62; &#60;/HEAD&#62; tags and tell search engines whats in a page (except google which actually reads a pages text content). Meta data should be put just after the &#60;TITLE&#62; tags in the &#60;HEAD&#62;. It tales the format [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.carl-topham.com%2Ftheblog%2F2007%2F03%2F06%2Ftag-youre-it%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.carl-topham.com%2Ftheblog%2F2007%2F03%2F06%2Ftag-youre-it%2F&amp;source=carldashtopham&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>The tags in question are META tags. They are the bits of code that sit in between the &lt;HEAD&gt; &lt;/HEAD&gt; tags and tell search engines whats in a page (except google which actually reads a pages text content).<span id="more-23"></span></p>
<p>Meta data should be put just after the &lt;TITLE&gt; tags in the &lt;HEAD&gt;. It tales the format &lt;META name=&#8221;the catagory&#8221; content=&#8221;the information&#8221;&gt;. The name is usually one of 4 types &#8211; &#8220;description&#8221;, &#8220;resource-type&#8221;, &#8220;keywords&#8221; or &#8220;distribution&#8221;. The information depends on the name. I will briefly cover the two that are most important for a search engine: &#8220;description&#8221; and &#8220;keywords&#8221;.</p>
<p>The &#8220;keywords&#8221; are a list of main topics covered by the page in question. This blog has the keywords &#8220;<span class="attribute-value">photoshop, illustrator, dreamweaver, Hints, Tips, Techniques, Carl Topham&#8221; since thats the main list that covers it. Separate each keyword with a comma (and space). Keywords can be two words so &#8220;Carl Topham&#8221; is counted as one keyword. Try to keep the keywords restricted to less than about 250 characters as some search engines actually reduce page ranking if you use too many.</span></p>
<p>The &#8220;description&#8221; is just that. It&#8217;s a more people friendly description of your page. Try to sumarise in 2-3 sentences. Some search engines use it but its usually just the bit shown under your link in the search engine.</p>
<p>You should end up with code that looks like:</p>
<div class="codebox">
<strong>&lt;META NAME=&#8221;Keywords&#8221; CONTENT=&#8221;illustration, Carl Topham, photoshop, illustrator, dreamweaver, Hints, Tips, Techniques&#8221;&gt;</strong></p>
<p><strong>&lt;META NAME=&#8221;Description&#8221; CONTENT=&#8221;The official blog of Carl Topham. Containing a range of graphic design, web design&#8230;.&#8221;&gt;</strong>
</div>
<p>To add it to your page just open your page in notepad, dreamweaver (code view) or web based editor and paste it after the title so it looks like this:</p>
<div class="codebox">
<strong>&lt;head&gt;</strong></p>
<p><strong>&lt;title&gt;carldashtophamdotcom &#8211; the blog&lt;/title&gt;</strong></p>
<p><strong>&lt;META NAME=&#8221;Keywords&#8221; CONTENT=&#8221;illustration, Carl Topham, photoshop, illustrator, dreamweaver, Hints, Tips, Techniques&#8221;</strong></p>
<p><strong>&gt;&lt;META NAME=&#8221;Description&#8221; CONTENT=&#8221;The official blog of Carl Topham. Containing a range of graphic design, web design&#8230;.&#8221;&gt;</strong></p>
<p>&#8211;more html code will probabaly be here</p>
<p><strong>&lt;/head&gt;</strong></div>
<p>Save and upload to your server.</p>
<p>If you are using wordpress the you need to login and goto &#8220;presentation &gt; theme editor&#8221; and choose &#8220;header&#8221; on the page list on the right. Then paste it on a new line after the &lt;TITLE&gt; tags same as in any other editor. &#8220;Update file&#8221; and your done. Now wondering search engine spiders and robots should add you with the relevent tags.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.carl-topham.com/theblog/2007/03/06/tag-youre-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
