<?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>CAM Web Design &#187; CSS</title>
	<atom:link href="http://camwebdesign.com/category/techniques/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://camwebdesign.com</link>
	<description>High quality, cost effective wed design and hosting solutions</description>
	<lastBuildDate>Mon, 12 Dec 2011 11:48:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Create a WordPress Child Theme, allow updates</title>
		<link>http://camwebdesign.com/techniques/create-a-wordpress-child-theme-allow-updates/</link>
		<comments>http://camwebdesign.com/techniques/create-a-wordpress-child-theme-allow-updates/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 05:04:29 +0000</pubDate>
		<dc:creator>Corey</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[Twenty Ten]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://camwebdesign.com/?p=1593</guid>
		<description><![CDATA[So you&#8217;ve got a decent handle on how WordPress works, you may have even edited a few themes directly, but now those themes have updates, what do you do (better yet what should you have done)? You need to explore Child Themes. How do you actually create a child theme in WordPress you may ask? <a href="http://camwebdesign.com/techniques/create-a-wordpress-child-theme-allow-updates/" class="more-link">(more...)</a>]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;ve got a decent handle on how WordPress works, you may have even edited a few themes directly, but now those themes have updates, what do you do (better yet what should you have done)?  You need to explore Child Themes.  How do you actually create a child theme in WordPress you may ask?  We will quickly explore what you need<span id="more-1593"></span> to create a Child Theme using the WordPress Twenty Ten theme as an example.  Then we will detail how to allow those updates to occur without loosing your customizations to any theme.</p>
<p>What do you need to create your Twenty Ten Child Theme (the basics):</p>
<ol>
<li>Twenty Ten installed in the <code>wp-content/themes/</code> folder.</li>
<li>A folder with your Child&#8217;s Theme name in the <code>wp-content/themes/</code> folder.</li>
<li>A <code>style.css</code> CSS file in the folder of your Child&#8217;s Theme.</li>
</ol>
<p>What could be additionally required:</p>
<ol>
<li>A <code>functions.php</code> file in the folder of your Child&#8217;s Theme, to modify or add functions.</li>
<li>Any additional file(s) you wish to modify from the Parent Theme: <code>header.php</code>, <code>footer.php</code>, etc.</li>
</ol>
<p>The magic happens in the CSS file of your Child Theme, namely the &#8220;Template&#8221; declaration line.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
Template: twentyten
*/</span></pre></td></tr></table></div>

<p>Adding this &#8220;Template&#8221; declaration in the CSS file tells WordPress to look for and run the Twenty Ten theme as a parent to this theme.  The Child Theme will then get all the functionality of the Parent, but you&#8217;ll be able to modify the files without worry of being overwritten when the Parent Theme updates.  Putting the &#8220;Template&#8221; declaration together with some of the common WordPress Theme declarations yeilds the code below.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
Theme Name: Your New Child Theme Name
Theme URI: http://your_web_site.com/
Description: Custom theme for your_web_site.com.
Author: You
Author URI: http://your_web_site.com/
Version: 0.1.0
Tags: all, the, tags, describing, your, new, theme
Template: twentyten
*/</span></pre></td></tr></table></div>

<p>So what should you do if you have modified a theme and updates to the theme are available?  Turn your current theme into a Child Theme.  For the sake of clarity, let&#8217;s assume you&#8217;ve modified the Twenty Ten theme.  Follow these steps below (replacing your current theme&#8217;s name where we&#8217;ve used Twenty Ten):</p>
<ol>
<li>Rename your current &#8220;Twenty Ten&#8221; theme in the <code>style.css</code> CSS file by modifying the &#8220;Theme Name&#8221; line.</li>
<li>Rename the &#8220;twentyten&#8221; folder your current theme is in.</li>
<li>Download a clean up-to-date copy of the Twenty Ten theme into your <code>wp-content/themes/</code> folder, don&#8217;t activate it.</li>
<li>Modify your newly renamed theme&#8217;s <code>style.css</code> CSS file by adding the &#8220;Template: twentyten&#8221; declaration.</li>
<li>Remove all the files you did not modify from your new Child Theme&#8217;s folder (you can usually tell by file-date-time if your using an ftp client).  Leave the original Twenty Ten ones alone from now on!</li>
<li>Re-activate your newly created Child Theme.</li>
</ol>
<p>Now you can happily let the Twenty Ten theme update eternally without loosing your modifications.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://camwebdesign.com/techniques/redefine-twenty-ten-header-image-width-and-height/" rel="bookmark" title="January 23, 2011">Redefine Twenty Ten header image width and height</a></li>
<li><a href="http://camwebdesign.com/techniques/using-html5-with-your-thematic-child-theme/" rel="bookmark" title="August 14, 2010">Using HTML5 with your Thematic Child Theme</a></li>
<li><a href="http://camwebdesign.com/techniques/remove-default-wordpresstwenty-ten-header-images/" rel="bookmark" title="January 23, 2011">Remove default WordPress Twenty Ten header images</a></li>
</ul>
<p><!-- Similar Posts took 15.877 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://camwebdesign.com/techniques/create-a-wordpress-child-theme-allow-updates/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Reset anyone?</title>
		<link>http://camwebdesign.com/techniques/css-reset-anyone/</link>
		<comments>http://camwebdesign.com/techniques/css-reset-anyone/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 17:43:14 +0000</pubDate>
		<dc:creator>Corey</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Techniques]]></category>

		<guid isPermaLink="false">http://camwebdesign.com/?p=521</guid>
		<description><![CDATA[When we create a new site&#8217;s CSS, we start with a CSS Reset to level the playing field between browsers. The problem, not all browsers treat the margin, padding, line height, font size, styling, text decoration, etc. the same, a CSS Reset helps us to &#8220;reset&#8221; these within each browser. The CSS Reset technique is <a href="http://camwebdesign.com/techniques/css-reset-anyone/" class="more-link">(more...)</a>]]></description>
			<content:encoded><![CDATA[<p>When we create a new site&#8217;s CSS, we start with a CSS Reset to level the playing field between browsers.  The problem, not all browsers treat the margin, padding, line height, font size, styling, text decoration, etc. the same, a CSS Reset helps us to &#8220;reset&#8221; these within each browser.  The <a href="http://www.google.com/search?q=CSS+Reset+technique">CSS Reset technique</a> is nothing new so we&#8217;ll let you read up on it&#8217;s history.</p>
<h3>Here is the reset that we use as our basic CSS building blocks:<span id="more-521"></span></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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* ------------------------Begin Reset------------------------ */</span>
html<span style="color: #00AA00;">,</span> body<span style="color: #00AA00;">,</span> div<span style="color: #00AA00;">,</span> span<span style="color: #00AA00;">,</span> applet<span style="color: #00AA00;">,</span> object<span style="color: #00AA00;">,</span> iframe<span style="color: #00AA00;">,</span>
h1<span style="color: #00AA00;">,</span> h2<span style="color: #00AA00;">,</span> h3<span style="color: #00AA00;">,</span> h4<span style="color: #00AA00;">,</span> h5<span style="color: #00AA00;">,</span> h6<span style="color: #00AA00;">,</span> p<span style="color: #00AA00;">,</span> blockquote<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span>
a<span style="color: #00AA00;">,</span> abbr<span style="color: #00AA00;">,</span> acronym<span style="color: #00AA00;">,</span> address<span style="color: #00AA00;">,</span> big<span style="color: #00AA00;">,</span> cite<span style="color: #00AA00;">,</span> code<span style="color: #00AA00;">,</span>
del<span style="color: #00AA00;">,</span> dfn<span style="color: #00AA00;">,</span> em<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">,</span> img<span style="color: #00AA00;">,</span> ins<span style="color: #00AA00;">,</span> kbd<span style="color: #00AA00;">,</span> q<span style="color: #00AA00;">,</span> s<span style="color: #00AA00;">,</span> samp<span style="color: #00AA00;">,</span>
small<span style="color: #00AA00;">,</span> strike<span style="color: #00AA00;">,</span> strong<span style="color: #00AA00;">,</span> sub<span style="color: #00AA00;">,</span> sup<span style="color: #00AA00;">,</span> tt<span style="color: #00AA00;">,</span> var<span style="color: #00AA00;">,</span>
b<span style="color: #00AA00;">,</span> u<span style="color: #00AA00;">,</span> i<span style="color: #00AA00;">,</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">,</span>
dl<span style="color: #00AA00;">,</span> dt<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> li<span style="color: #00AA00;">,</span>
fieldset<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> label<span style="color: #00AA00;">,</span> legend<span style="color: #00AA00;">,</span>
table<span style="color: #00AA00;">,</span> caption<span style="color: #00AA00;">,</span> tbody<span style="color: #00AA00;">,</span> tfoot<span style="color: #00AA00;">,</span> thead<span style="color: #00AA00;">,</span> tr<span style="color: #00AA00;">,</span> th<span style="color: #00AA00;">,</span> td <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><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: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</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><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">baseline</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
body <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1.4</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ol<span style="color: #00AA00;">,</span> ul <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
blockquote<span style="color: #00AA00;">,</span> q <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">quotes</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
blockquote<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span> blockquote<span style="color: #3333ff;">:after</span><span style="color: #00AA00;">,</span>
q<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span> q<span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">''</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* remember to define focus styles! */</span>
<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* remember to highlight inserts somehow! */</span>
ins <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
del <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">line-through</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* tables still need 'cellspacing=&quot;0&quot;' in the markup */</span>
table <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-collapse</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">collapse</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* ------------------------End Reset------------------------ */</span></pre></td></tr></table></div>

<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://camwebdesign.com/techniques/using-html5-with-your-thematic-child-theme/" rel="bookmark" title="August 14, 2010">Using HTML5 with your Thematic Child Theme</a></li>
<li><a href="http://camwebdesign.com/techniques/detect-ipad-with-javascript/" rel="bookmark" title="August 8, 2011">Detect iPad with javascript</a></li>
<li><a href="http://camwebdesign.com/techniques/dynamic-font-based-images/" rel="bookmark" title="January 2, 2010">Dynamic Font-Based Images</a></li>
</ul>
<p><!-- Similar Posts took 15.963 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://camwebdesign.com/techniques/css-reset-anyone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

