<?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; CSS</title>
	<atom:link href="http://www.carl-topham.com/theblog/category/css/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>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>Centering mixed height pages</title>
		<link>http://www.carl-topham.com/theblog/2008/07/29/centering-mixed-height-pages/</link>
		<comments>http://www.carl-topham.com/theblog/2008/07/29/centering-mixed-height-pages/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 15:05:36 +0000</pubDate>
		<dc:creator>Carl</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.carl-topham.com/theblog/?p=113</guid>
		<description><![CDATA[This is a quick and easy way toÂ center all your website pages, even if they are longer than the browser window and usually cause scollbars to move the page over slightly! This is especially usefully if you want the layout to stay lined up from page to page. Hopefully you are using css to 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%2F2008%2F07%2F29%2Fcentering-mixed-height-pages%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.carl-topham.com%2Ftheblog%2F2008%2F07%2F29%2Fcentering-mixed-height-pages%2F&amp;source=carldashtopham&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a quick and easy way toÂ center all your website pages, even if they are longer than the browser window and usually cause scollbars to move the page over slightly! This is especially usefully if you want the layout to stay lined up from page to page.<span id="more-113"></span></p>
<p>Hopefully you are using css to format all your pages the same way. Open up yourÂ css file and if it doesn&#8217;t exist already then create a html sytle like this :<br />
[code lang="html4strict"]<br />
html {<br />
min-height: 100%;<br />
margin-bottom: 1px;<br />
}<br />
[/code]<br />
Now your page will always be 100% of the browser hight and will have a border of 1px on the bottomÂ so that they&#8217;re just a tiny bit bigger than 100% and so willÂ have a scrollbar even if the content would usually never have a scroll bar.</span></div>
<div><span>All your pages will now have the same browser window width so will all center in the same place.</span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.carl-topham.com/theblog/2008/07/29/centering-mixed-height-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
