<?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>BlogCrafted &#187; Design, CSS, Tips, etc.</title>
	<atom:link href="http://blogcrafted.com/category/design-css-tips-etc/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogcrafted.com</link>
	<description>build the blog you want!</description>
	<lastBuildDate>Wed, 16 Feb 2011 17:18:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A Coder/Designer&#8217;s Best Reference Manual Is . . . a Search Engine</title>
		<link>http://blogcrafted.com/a-coder-designers-best-reference-manual-is-a-search-engine/</link>
		<comments>http://blogcrafted.com/a-coder-designers-best-reference-manual-is-a-search-engine/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 18:30:18 +0000</pubDate>
		<dc:creator>BlogCrafted Staff</dc:creator>
				<category><![CDATA[Design, CSS, Tips, etc.]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[etc.]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://hire.mrsmicah.com/?p=145</guid>
		<description><![CDATA[Don't discount the search engine, it's often faster, more accurate, and less expensive than reference books on programming.


Related posts:<ul><li><a href='http://blogcrafted.com/changing-the-header-in-cutline-3-column-split-or-right-wordpress-theme/' rel='bookmark' title='Permanent Link: Changing the Header in Cutline 3-Column Split (or Right) Wordpress Theme'>Changing the Header in Cutline 3-Column Split (or Right) Wordpress Theme</a></li>
<li><a href='http://blogcrafted.com/organizing-your-css-files-alphabetically-pros-and-cons/' rel='bookmark' title='Permanent Link: Organizing Your CSS Files Alphabetically &#8212; Pros and Cons'>Organizing Your CSS Files Alphabetically &#8212; Pros and Cons</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p></p><p>Whenever I go to Border&#8217;s or the library, I always find myself browsing the computer/code section. I&#8217;ll flip through books on html, CSS, web design, wondering if there&#8217;s something new I can learn. Wondering if I&#8217;ll hit upon a magic volume that has all the answers.</p>
<p>But other than a book I&#8217;ve been coveting on <a href="http://blogcrafted.com/go/amazon.php?asin=0764579851">CSS hacks</a>, there&#8217;s really not much I need. I frequently want to double-check things, but the internet is much more helpful than any one book. And a search engine is better than any one site.</p>
<p>Say, for example, I wanted to remember what the name for the CSS property which makes an unordered list appear with hollow circles instead of filled ones. Disc? Dot? Circle? I simply open a tab and run this search <a href="http://www.google.com/search?client=opera&#038;rls=en&#038;q=css+list+style&#038;sourceid=opera&#038;ie=utf-8&#038;oe=utf-8">http://www.google.com/search?client=opera&#038;rls=en&#038;q=css+list+style&#038;sourceid=opera&#038;ie=utf-8&#038;oe=utf-8</a> (as you can see, I was using Opera).</p>
<p>Voila! The <a href="http://www.w3schools.com/CSS/pr_list-style-type.asp" rel="nofollow">first result</a> is from <a href="http://www.w3schools.com/" rel="nofollow">w3schools.com</a> and tells me that if I want a circle marker, I use &#8220;list-style-type: circle;&#8221;. But if I want a filled circle, I use &#8220;disc.&#8221;</p>
<p>For more complicated queries, I&#8217;ve even run across forums I never knew existed where someone else has already asked the question. The answer probably isn&#8217;t in your average reference book (at least not in simple answer form), nor is it somewhere I&#8217;d have thought to look.</p>
<p>I could bookmark <a href="http://www.w3schools.com/" rel="nofollow">w3schools.com</a>, in fact I already have. But it&#8217;s faster for me to hit Ctrl+T and run a search in my little google search box than it is for me to open a Tab and then find/click on a bookmark, etc. It&#8217;s much faster than pulling out a reference book (even if it&#8217;s beside me) and flipping to the right page.</p>
<p>If I had a hard time finding a piece of information, or if it&#8217;s an extremely valuable resource, I do bookmark it. Generally I use my delicious account (apparently it&#8217;s not del.icio.us any more). But my bookmarks are more of a backup than anything else. They just take longer to use.</p>
<p>The nice thing about code, whether it&#8217;s xhtml &amp; CSS or PHP or something more complicated, is that what you find on the internet is pretty often reliable. Especially what you find on the top search results. It&#8217;s much less subjective and controversial than almost anything else out there. You don&#8217;t need to cite your sources as long as your code works. So whether you got it from the w3schools or from a blog (like my entry on using <a href="http://blogcrafted.com/articles/wordpress-php-conditional-tags/">Conditional PHP in Wordpress</a>) you just need it to work.</p>
<p>Buy the reference books if you want to, especially if you&#8217;re starting out and want to understand the structure of the code. But don&#8217;t discount the power of search engines. They may not be good sources for your research paper on gender-bending in Elizabethan drama, but they&#8217;re great sources for your code questions.</p>


<p>Related posts:<ul><li><a href='http://blogcrafted.com/changing-the-header-in-cutline-3-column-split-or-right-wordpress-theme/' rel='bookmark' title='Permanent Link: Changing the Header in Cutline 3-Column Split (or Right) Wordpress Theme'>Changing the Header in Cutline 3-Column Split (or Right) Wordpress Theme</a></li>
<li><a href='http://blogcrafted.com/organizing-your-css-files-alphabetically-pros-and-cons/' rel='bookmark' title='Permanent Link: Organizing Your CSS Files Alphabetically &#8212; Pros and Cons'>Organizing Your CSS Files Alphabetically &#8212; Pros and Cons</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://blogcrafted.com/a-coder-designers-best-reference-manual-is-a-search-engine/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Changing the Header in Cutline 3-Column Split (or Right) Wordpress Theme</title>
		<link>http://blogcrafted.com/changing-the-header-in-cutline-3-column-split-or-right-wordpress-theme/</link>
		<comments>http://blogcrafted.com/changing-the-header-in-cutline-3-column-split-or-right-wordpress-theme/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 17:00:37 +0000</pubDate>
		<dc:creator>BlogCrafted Staff</dc:creator>
				<category><![CDATA[Design, CSS, Tips, etc.]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Wordpress Themes]]></category>
		<category><![CDATA[Blogging with Wordpress]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[etc.]]></category>
		<category><![CDATA[instructions]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://hire.mrsmicah.com/?p=25</guid>
		<description><![CDATA[Simple instructions for changing the header in Cutline themes. Also some pointers on making the Cutline look a little softer.


Related posts:<ul><li><a href='http://blogcrafted.com/introducing-the-silver-light-3-column-wordpress-theme/' rel='bookmark' title='Permanent Link: Introducing the Silver Light 3-Column Wordpress Theme'>Introducing the Silver Light 3-Column Wordpress Theme</a></li>
<li><a href='http://blogcrafted.com/add-gravatars-cutline/' rel='bookmark' title='Permanent Link: Tutorial: Adding Gravatars to Cutline Themes'>Tutorial: Adding Gravatars to Cutline Themes</a></li>
<li><a href='http://blogcrafted.com/how-to-change-the-name-of-your-wordpress-theme/' rel='bookmark' title='Permanent Link: How to Change the Name of Your Wordpress Theme'>How to Change the Name of Your Wordpress Theme</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p></p><p><em>Note: this fix will work for both <a rel="nofollow" href="http://themes.wordpress.net/columns/3-columns/4415/cutline-3-column-split-11/">Cutline 3-Column Split</a> and <a rel="nofollow" href="http://themes.wordpress.net/columns/3-columns/4217/cutline-3-column-right-11/">Cutline 3-Column Right</a> Wordpress themes.</em></p>
<p>I&#8217;ve had several people contact me to ask how I changed my personal blog&#8217;s header from the Cutline 3-Column version (<em>click on any image to see a larger version</em>):</p>
<p><a rel="lightbox" href="http://blogcrafted.com/img/originalcutline.png"><img title="click for a closer look at the original theme" src="http://blogcrafted.com/img/originalcutlinesmall.png" alt="Original Cutline 3-column" align="center" /></a></p>
<p>To this:</p>
<p><a rel="lightbox" href="http://blogcrafted.com/img/newcutline.png"><img title="click for a closer look at the header difference" src="http://blogcrafted.com/img/newcutlinesmall.png" alt="blogcrafted" align="center" /></a></p>
<p>How did I get rid of the extra picture, freeing up more space for text above the fold? The simple way to do it is by removing all this code in the header.php file:</p>
<pre class="brush: xhtml">&lt;div id=&quot;header_img&quot;&gt;
&lt;?php if (is_home()) {?&gt;
&lt;img src=&quot;&lt;?php bloginfo(&#039;template_url&#039;; ?&gt;/images/header_1.jpg&quot; width=&quot;970&quot; height=&quot;140&quot; alt=&quot;&lt;?php bloginfo(&#039;name&#039;); ?&gt; header image 1&quot; title=&quot;&lt;?php bloginfo(&#039;name&#039;); ?&gt; header image 1&quot; /&gt;
&lt;?php } elseif (is_single()) {?&gt;
&lt;img src=&quot;&lt;?php bloginfo(&#039;template_url&#039;; ?&gt;/images/header_2.jpg&quot; width=&quot;970&quot; height=&quot;140&quot; alt=&quot;&lt;?php bloginfo(&#039;name&#039;); ?&gt; header image 2&quot; title=&quot;&lt;?php bloginfo(&#039;name&#039;); ?&gt; header image 2&quot; /&gt;
&lt;?php } elseif (is_page()) {?&gt;
&lt;img src=&quot;&lt;?php bloginfo(&#039;template_url&#039;; ?&gt;/images/header_3.jpg&quot; width=&quot;970&quot; height=&quot;140&quot; alt=&quot;&lt;?php bloginfo(&#039;name&#039;); ?&gt; header image 3&quot; title=&quot;&lt;?php bloginfo(&#039;name&#039;); ?&gt; header image 3&quot; /&gt;
&lt;?php } elseif (is_archive()) {?&gt;
&lt;img src=&quot;&lt;?php bloginfo(&#039;template_url&#039;; ?&gt;/images/header_4.jpg&quot; width=&quot;970&quot; height=&quot;140&quot; alt=&quot;&lt;?php bloginfo(&#039;name&#039;); ?&gt; header image 4&quot; title=&quot;&lt;?php bloginfo(&#039;name&#039;); ?&gt; header image 4&quot; /&gt;
&lt;?php } else {?&gt;
&lt;img src=&quot;&lt;?php bloginfo(&#039;template_url&#039;; ?&gt;/images/header_5.jpg&quot; width=&quot;970&quot; height=&quot;140&quot; alt=&quot;&lt;?php bloginfo(&#039;name&#039;); ?&gt; header image 5&quot; title=&quot;&lt;?php bloginfo(&#039;name&#039;); ?&gt; header image 5&quot; /&gt;
&lt;?php } ?&gt;

&lt;/div&gt;</pre>
<p><strong>However, this leaves you with a thick black bar</strong> (at the bottom of the #nav section&#8230;you can barely see it in the original Cutline image since it almost blends in with the picture) directly above your blog. It meshes rather unpleasantly with the top of the sidebar widgets.</p>
<p><a rel="lightbox" href="/img/whoops.png"><img title="click to see what happens if you just remove the header_img section" src="/img/whoopssmall.png" alt="what happens if you just remove the header_img section" align="center" /></a></p>
<p>To fix that, go into the <code>ul#nav</code> section of the theme&#8217;s stylesheet (style.css) and add the following code:</p>
<pre class="brush: css">margin: 0 0 10px 0;</pre>
<p>This creates a 10px margin between the line and the top of the blog/sidbar, a small visual break.</p>
<p>If that&#8217;s not enough for you or you don&#8217;t like the overall thickness, here&#8217;s the code to lighten all the lines as I&#8217;ve done in the picture below. I changed their colors to match the horizontal line at the top of the blog (whose color is defined as #ccc in the #masthead h1 section of the stylesheet, if you want to change that as well).</p>
<p>This code will lighten the lines above and below the navigation links:</p>
<pre class="brush: css">ul#nav { list-style: none; width: 950px; padding: 0 10px; margin: 0 0 10px 0; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; float: left; clear: both; }</pre>
<p>and this code will change the sidebars to have lighter lines around their widget headers as well:</p>
<pre class="brush: css">li.widget h2, li.linkcat h2 { font-weight: bold; font-size: 1.077em; text-transform: uppercase; letter-spacing: normal; margin: 0 0 0.8em 0; padding: 0.4em 2px; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; }</pre>
<p>This is what the end result will look like:</p>
<p><a rel="lightbox" href="http://blogcrafted.com/img/newcutline.png"><img title="click to see the pretty result...and make sure to click the magnifying glass if you have the option to make it bigger" src="http://blogcrafted.com/img/newcutlinesmall.png" alt="Lighter Lines" align="center" /></a></p>
<p>Voila! Let me know how it works for you.</p>


<p>Related posts:<ul><li><a href='http://blogcrafted.com/introducing-the-silver-light-3-column-wordpress-theme/' rel='bookmark' title='Permanent Link: Introducing the Silver Light 3-Column Wordpress Theme'>Introducing the Silver Light 3-Column Wordpress Theme</a></li>
<li><a href='http://blogcrafted.com/add-gravatars-cutline/' rel='bookmark' title='Permanent Link: Tutorial: Adding Gravatars to Cutline Themes'>Tutorial: Adding Gravatars to Cutline Themes</a></li>
<li><a href='http://blogcrafted.com/how-to-change-the-name-of-your-wordpress-theme/' rel='bookmark' title='Permanent Link: How to Change the Name of Your Wordpress Theme'>How to Change the Name of Your Wordpress Theme</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://blogcrafted.com/changing-the-header-in-cutline-3-column-split-or-right-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Organizing Your CSS Files Alphabetically &#8212; Pros and Cons</title>
		<link>http://blogcrafted.com/organizing-your-css-files-alphabetically-pros-and-cons/</link>
		<comments>http://blogcrafted.com/organizing-your-css-files-alphabetically-pros-and-cons/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 00:06:33 +0000</pubDate>
		<dc:creator>BlogCrafted Staff</dc:creator>
				<category><![CDATA[Design, CSS, Tips, etc.]]></category>
		<category><![CDATA[blog design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[stylesheet]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://hire.mrsmicah.com/?p=19</guid>
		<description><![CDATA[How should you organize your CSS? Alphabetically? Structurally? Some of my thoughts on the pros and cons of each method.


Related posts:<ul><li><a href='http://blogcrafted.com/changing-the-header-in-cutline-3-column-split-or-right-wordpress-theme/' rel='bookmark' title='Permanent Link: Changing the Header in Cutline 3-Column Split (or Right) Wordpress Theme'>Changing the Header in Cutline 3-Column Split (or Right) Wordpress Theme</a></li>
<li><a href='http://blogcrafted.com/a-coder-designers-best-reference-manual-is-a-search-engine/' rel='bookmark' title='Permanent Link: A Coder/Designer&#8217;s Best Reference Manual Is . . . a Search Engine'>A Coder/Designer&#8217;s Best Reference Manual Is . . . a Search Engine</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p></p><p>As I&#8217;ve been building more of my CSS from scratch or drastically altering designs, I&#8217;ve come across a new dilemma: organization.</p>
<p>On the one hand, it&#8217;s entirely possible to leave a CSS sheet unorganized. As long as every styling is set up properly it shouldn&#8217;t matter. And one can always use Ctrl (Command) + F to find where the <code>h1</code> or <code>.post</code> styling is.</p>
<p>But if you&#8217;re going to be modifying this stylesheet, it&#8217;s not very useful. And if you want it to be useful for other people (like a Wordpress theme) there needs to be some kind of structure they&#8217;ll understand.</p>
<p>Which leaves you with two choices, alphabetical order or structural order.</p>
<p>While I started out with structural stylesheets, I&#8217;m beginning to lean towards alphabetical. Here&#8217;s why:</p>
<h3>Pros of an Alphabetical Stylesheet</h3>
<p>The biggest benefit of an alphabetical stylesheet is being able to find anything right away. Need <code>#footer</code>? Scroll down to the <em>f&#8217;s</em>. It&#8217;s easy to add and remove. And it can avoid a lot of confusion.</p>
<p>For example, I was recently modifying a Wordpress theme. The original designer had used a structural design. One section included the <code>#header, #sidebar, #content, and #footer</code>. Unfortunately, he&#8217;d also put a second <code>#sidebar</code> in the miscellaneous code at the end. Perhaps he was modifying something too.</p>
<p>Anyway, all I wanted to do was edit the sidebar, but it took me a long time to figure out why changing the width wasn&#8217;t working. I didn&#8217;t even think of looking for a second section which also defined its width. In an alphabetical stylesheet this would never have happened. If the designer had been better organized that would work too, but alphabetizing means that organization comes naturally.</p>
<p>Even if there aren&#8217;t double items, structural code may be arranged non-intuitively. In every Wordpress theme, I have to go looking for an element and find it somewhere I would never have thought logical. The alphabet is never illogical.</p>
<h3>Cons of an Alphabetical Stylesheet</h3>
<p>On the other hand, it can be quite handy to have the stylesheet arranged in sections. For example, if you want to modify the widths of the <code>#header, #sidebar, #content, and #footer</code>, you can do it without having to scroll up and down the page. Ideally, you also know all the main page divisions (unless they stuck one farther down).</p>
<p>Or if you&#8217;re modifying various elements in the sidebar, they&#8217;re all grouped together (except width). You don&#8217;t miss any of them.</p>
<p>Still, if you have the code of the sidebar itself, you can just look up each element you use in the alphabetical list.</p>
<h3>Structural or Alphabetical?</h3>
<p>I don&#8217;t think there&#8217;s a concrete answer on which one is better. Alphabetical means less outright organizing, but you may have to check the code it&#8217;s being applied to to figure out which styles you have to modify. It&#8217;s probably easier to put together initially, because there&#8217;s no question about where an object belongs.</p>
<p>Structural is generally easy to modify, <em>provided it was put together right in the first place</em>. Highly conditional. Also, what you think is a good organizational structure may make no sense to everyone else. And you have to figure out what to do with misc elements like <code>blockquote</code> or <code>abbr</code>.</p>
<p>Right now I&#8217;m leaning towards alphabetical. What about you?</p>
<p>(You&#8217;ll notice that the CSS of this theme isn&#8217;t alphabetical. That&#8217;s because I did the primary work on it months ago before I considered arranging it differently, so I just left things as the original designer had done them.)</p>


<p>Related posts:<ul><li><a href='http://blogcrafted.com/changing-the-header-in-cutline-3-column-split-or-right-wordpress-theme/' rel='bookmark' title='Permanent Link: Changing the Header in Cutline 3-Column Split (or Right) Wordpress Theme'>Changing the Header in Cutline 3-Column Split (or Right) Wordpress Theme</a></li>
<li><a href='http://blogcrafted.com/a-coder-designers-best-reference-manual-is-a-search-engine/' rel='bookmark' title='Permanent Link: A Coder/Designer&#8217;s Best Reference Manual Is . . . a Search Engine'>A Coder/Designer&#8217;s Best Reference Manual Is . . . a Search Engine</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://blogcrafted.com/organizing-your-css-files-alphabetically-pros-and-cons/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

