<?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>inditetheweb.com&#187; Tips and Tricks | Indite the Web | Web Development Tips, Tricks, and Tutorials</title>
	<atom:link href="http://www.inditetheweb.com/category/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.inditetheweb.com</link>
	<description>Web Development Tips, Tricks, and Tutorials</description>
	<lastBuildDate>Wed, 11 Nov 2009 17:57:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Free &#8220;Lorem Ipsum&#8221; Generator Is a Great Resource</title>
		<link>http://www.inditetheweb.com/2009/09/free-lorem-ipsum-generator-is-a-great-resource/</link>
		<comments>http://www.inditetheweb.com/2009/09/free-lorem-ipsum-generator-is-a-great-resource/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 19:09:52 +0000</pubDate>
		<dc:creator>Kate</dc:creator>
				<category><![CDATA[Web Development Tips and Tricks]]></category>
		<category><![CDATA[Resource]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.inditetheweb.com/?p=166</guid>
		<description><![CDATA[When I was a kid I tried to teach myself Latin using a program on the computer.  After some minor mocking from my family, and life getting busier, I quit.  Fast forward to present time, and I&#8217;m now a Web developer.  As most developers and designers know, you don&#8217;t always have the [...]]]></description>
			<content:encoded><![CDATA[<p>When I was a kid I tried to teach myself Latin using a program on the computer.  After some minor mocking from my family, and life getting busier, I quit.  Fast forward to present time, and I&#8217;m now a Web developer.  As most developers and designers know, you don&#8217;t always have the content for a site layout.  But, you still need some filler text.  A common technique is to use &#8220;Latin&#8221;, namely lorem ipsum. (See the update at the end of the article for more info.)  I came across a site quite a while back, and I thought it was pretty cool: <a href="http://www.lipsum.com/" onclick="window.open('http://www.lipsum.com/');return false;">lipsum.com</a>  Apparently one of the benefits of using their generated &#8220;lorem ipsum&#8221; text is that it&#8217;s &#8220;free from repetition, injected humour, or non-characteristic words etc.&#8221;.  Well, the truth is, I&#8217;m not sure how true that is.  (Remember, I never actually learned Latin.)  So, if the above claim is false, I apologize in advance.  If not, it may turn out to be a cool little resource for you to use.</p>
<p><strong>UPDATE:</strong> Okay, a little clarification: Check out Wouter&#8217;s comment below, but in short, to be clear, Lorem Ipsum isn&#8217;t &#8220;valid Latin&#8221;&#8230; It&#8217;s a meaningless mish-mash of Latin(esque)/semi-Latin words. Do a quick Google search or visit <a href="http://en.wikipedia.org/wiki/Lorem_ipsum" onclick="window.open('http://en.wikipedia.org/wiki/Lorem_ipsum'); return false;">Wikipedia</a> for more info.  Still a very handy tool!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.inditetheweb.com/2009/09/free-lorem-ipsum-generator-is-a-great-resource/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Displaying Ads After Selected Number of Posts In WordPress</title>
		<link>http://www.inditetheweb.com/2009/04/displaying-ads-after-selected-number-of-posts-in-wordpress/</link>
		<comments>http://www.inditetheweb.com/2009/04/displaying-ads-after-selected-number-of-posts-in-wordpress/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 14:15:53 +0000</pubDate>
		<dc:creator>Kate</dc:creator>
				<category><![CDATA[WordPress Tips and Tricks]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.inditetheweb.com/?p=131</guid>
		<description><![CDATA[At wphacks.com, I found a solution for displaying ads after the first post only.  I had thought about using it, as it would&#8217;ve worked fine for the project I needed it on.  But, I decided to use a counter instead as I thought it would be more flexible.  For instance, what if [...]]]></description>
			<content:encoded><![CDATA[<p>At <a href="http://wphacks.com/how-to-insert-ads-only-after-the-first-post/" onclick="window.open('http://wphacks.com/how-to-insert-ads-only-after-the-first-post');return false;">wphacks.com</a>, I found a solution for displaying ads after the first post only.  I had thought about using it, as it would&#8217;ve worked fine for the project I needed it on.  But, I decided to use a counter instead as I thought it would be more flexible.  For instance, what if you want the ad to appear after the second post&#8230; or after the third post?  The following code worked good for me, and I hope it does the same for you:</p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">/*Code to initiate counter goes above the loop*/
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #666666; font-style: italic;">/*Initiate counter for post ads*/</span>
    <span style="color: #000088;">$counterAd</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
/*Start of loop followed by post content here*/
&nbsp;
/*Before the end of the loop, insert the ad code and counter incrementation:*/
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$counterAd</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
 <span style="color: #666666; font-style: italic;">/*If $counterAd = 1 that means this is just after the first post.  If so, print ad.*/</span>
<span style="color: #666666; font-style: italic;">/*NOTE: Alternatively you could change the one to be whichever post you'd like the ad to display after.*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
	 &lt;!-- Ad Code Goes Here --&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
      <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*Increment counter*/</span>
<span style="color: #000088;">$counterAd</span> <span style="color: #339933;">++;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.inditetheweb.com/2009/04/displaying-ads-after-selected-number-of-posts-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PNG Transparency Solutions For IE6</title>
		<link>http://www.inditetheweb.com/2009/04/png-transparency-solutions-for-ie6/</link>
		<comments>http://www.inditetheweb.com/2009/04/png-transparency-solutions-for-ie6/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 14:11:09 +0000</pubDate>
		<dc:creator>Kate</dc:creator>
				<category><![CDATA[CSS Tips and Tricks]]></category>
		<category><![CDATA[JavaScript Tips and Tricks]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[PNG]]></category>
		<category><![CDATA[transparency]]></category>

		<guid isPermaLink="false">http://www.inditetheweb.com/?p=140</guid>
		<description><![CDATA[I&#8217;ve never really played around with PNG transparency because of IE6s lack of support.  But, recently I wanted to use it on a project, and I knew there&#8217;s a Microsoft solution using AlphaImageLoader.  So I gave it a try, and it worked fairly well.  Until I went to click a link.  [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve never really played around with PNG transparency because of IE6s lack of support.  But, recently I wanted to use it on a project, and I knew there&#8217;s a Microsoft solution using AlphaImageLoader.  So I gave it a try, and it worked fairly well.  Until I went to click a link.  And then I tried highlighting text.  No dice.  I assumed it was a z-index issue, so after trying a couple things myself, I did a quick search online.  I came across this article:</p>
<p><a href="http://www.hrunting.org/csstests/iealpha.html" onclick="window.open('http://www.hrunting.org/csstests/iealpha.html');return false;">http://www.hrunting.org/csstests/iealpha.html</a></p>
<p>And, it worked!  (Didn&#8217;t need to add a z-index, either.)  Now, bear in mind that the fix is to *not* set positioning on the element that you use a filter on.  So it may not be right for your project.  However, if your layout does rely on position:relative, consider using this:</p>
<p><a href="http://www.dillerdesign.com/experiment/DD_belatedPNG/" onclick="window.open('http://www.dillerdesign.com/experiment/DD_belatedPNG/');return false;">http://www.dillerdesign.com/experiment/DD_belatedPNG/</a></p>
<p>It&#8217;s a great JS library that easily whips IE6 into shape.  I&#8217;m using it on a site that&#8217;s also using MooTools, and I&#8217;ve experienced no conflict issues, which is great.</p>
<p>I can&#8217;t wait until the percentage of IE6 users falls low enough to ease my mind about not supporting them.  (I know many think it already has, but I&#8217;m holding on.  At least for a little while.)  The concession of sorts that I&#8217;ve made is that for IE6 users who don&#8217;t have JS enabled, obviously it&#8217;s not good news.  But, in my opinion, to support both was just unnecessary.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.inditetheweb.com/2009/04/png-transparency-solutions-for-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why You Should Comment Your Code</title>
		<link>http://www.inditetheweb.com/2009/03/why-you-should-comment-your-code/</link>
		<comments>http://www.inditetheweb.com/2009/03/why-you-should-comment-your-code/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 23:18:06 +0000</pubDate>
		<dc:creator>Kate</dc:creator>
				<category><![CDATA[Web Development Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.inditetheweb.com/?p=128</guid>
		<description><![CDATA[I know at times when you&#8217;re in the middle of a project, buried deep in the guts of its code, it&#8217;s hard for you to imagine that you could forget what you were trying to do.  You may think: &#8220;There&#8217;s no way I won&#8217;t remember what this function does.  I spent x amount [...]]]></description>
			<content:encoded><![CDATA[<p>I know at times when you&#8217;re in the middle of a project, buried deep in the guts of its code, it&#8217;s hard for you to imagine that you could forget what you were trying to do.  You may think: &#8220;There&#8217;s no way I won&#8217;t remember what this function does.  I spent x amount of time coding and testing it.&#8221;  But, step away for a few weeks or more, and you just may be surprised.  (Hey, if the project&#8217;s big enough, I&#8217;m sure it wouldn&#8217;t even take that long.)  That&#8217;s why it&#8217;s important to not only have well formatted code, (you know, everything lined up, etc.), but also to <strong>comment your code</strong>!  Even something as seemingly simple as a stylesheet can benefit from notes.  (Why I used this fix here, or that style there.)</p>
<p>I know, at least for me, commenting&#8217;s often the last thing on my mind when I&#8217;m coding something.  But, if you don&#8217;t already, try and get in the habit of doing it.  I&#8217;m sure you won&#8217;t regret it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.inditetheweb.com/2009/03/why-you-should-comment-your-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Controlling the Textarea Tag In Safari</title>
		<link>http://www.inditetheweb.com/2009/01/controlling-the-textarea-tag-in-safari/</link>
		<comments>http://www.inditetheweb.com/2009/01/controlling-the-textarea-tag-in-safari/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 17:46:14 +0000</pubDate>
		<dc:creator>Kate</dc:creator>
				<category><![CDATA[CSS Tips and Tricks]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.inditetheweb.com/?p=124</guid>
		<description><![CDATA[If you&#8217;ve used Safari for any amount of time, there&#8217;s a good chance you&#8217;ve noticed it allows users to resize textarea sizes.  This can be a cool feature, but not always a good one.  It&#8217;s not likely to do any real harm, but it may break your layout.  Of course, some could [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve used Safari for any amount of time, there&#8217;s a good chance you&#8217;ve noticed it allows users to resize textarea sizes.  This can be a cool feature, but not always a good one.  It&#8217;s not likely to do any real harm, but it may break your layout.  Of course, some could argue that that&#8217;s the user&#8217;s choice.  Well, I can see that.  But for those times or people that require a little more control, use this:</p>
<p><code>
<pre>textarea{max-width:200px;}/*Insert your value here.  Additionally, you could add textarea width and height values which ensures that it will look the same across all browsers.*/</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.inditetheweb.com/2009/01/controlling-the-textarea-tag-in-safari/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Styling the abbr Tag</title>
		<link>http://www.inditetheweb.com/2008/12/styling-the-abbr-tag/</link>
		<comments>http://www.inditetheweb.com/2008/12/styling-the-abbr-tag/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 18:20:23 +0000</pubDate>
		<dc:creator>Kate</dc:creator>
				<category><![CDATA[CSS Tips and Tricks]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.inditetheweb.com/?p=86</guid>
		<description><![CDATA[There are several ways that CSS can work along with SEO. Today, I&#8217;ll cover one quick option: styling the abbr tag.
Say, for instance, you have a link that states that your site is valid XHTML. Well, inside of the link use the abbr tag around the word XHTML. Inside of the abbr tag you use [...]]]></description>
			<content:encoded><![CDATA[<p>There are several ways that CSS can work along with SEO. Today, I&#8217;ll cover one quick option: styling the abbr tag.</p>
<p>Say, for instance, you have a link that states that your site is valid XHTML. Well, inside of the link use the abbr tag around the word XHTML. Inside of the abbr tag you use the title attribute to fill in what the word is an abbreviation for. When a search engine crawls your site, they not only come across your abbreviation, but also the value you&#8217;ve put in for the title. When hovered over, the title creates a tool-tip. By default the abbreviation will have a line below it. However, if you don&#8217;t want the line used, you would use this declaration in the CSS:</p>
<p><code>
<pre>abbr{border:none;} </pre>
<p></code></p>
<p>
(For simplicity sake, I&#8217;m using an inline style here.  Because I have the abbr styled in my CSS, I had to override it by manually inserting what the browser does by default:)
</p>
<p>Without the style:<br />
<a href="#">Valid <abbr title="eXtensible Hypertext Markup Language" style="border-bottom:1px dashed #ec1f93;" >XHTML</abbr></a>
</p>
<p>With the style:<br />
<a href="#">Valid <abbr title="eXtensible Hypertext Markup Language" style="border:none;">XHTML</abbr></a>
</p>
<p>See the difference?  It&#8217;s quick but handy.  Alternatively, you could use a different border or another style if you wanted to.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.inditetheweb.com/2008/12/styling-the-abbr-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two Of My Favorite Tricks&#8230;</title>
		<link>http://www.inditetheweb.com/2008/10/two-of-my-favorite-tricks/</link>
		<comments>http://www.inditetheweb.com/2008/10/two-of-my-favorite-tricks/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 18:09:40 +0000</pubDate>
		<dc:creator>Kate</dc:creator>
				<category><![CDATA[CSS Tips and Tricks]]></category>
		<category><![CDATA[browser support]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.inditetheweb.com/?p=62</guid>
		<description><![CDATA[CSS can be one of the most powerful tools a developer has in their arsenal.  It can make changing styles a breeze compared to inline styles.  But, it can also be one of the most frustrating tools a developer has.  It&#8217;s not CSS in and of itself.  Rather, it&#8217;s the support, [...]]]></description>
			<content:encoded><![CDATA[<p>CSS can be one of the most powerful tools a developer has in their arsenal.  It can make changing styles a breeze compared to inline styles.  But, it can also be one of the most frustrating tools a developer has.  It&#8217;s not CSS in and of itself.  Rather, it&#8217;s the support, or <em>lack</em> of support that&#8217;s frustrating.  Even seasoned developers can encounter a problem that makes them sit back and scratch their head.  While such problems have usually come from, (ahem), IE6, other browsers have their fair share of quirks.  So, at least for now, I wanted to list two of my favorite tricks/techniques that I use when I code a stylesheet.  Hope they&#8217;re helpful.  If you have any comments or questions, feel free to include them in the comments section.</p>
<p><code></p>
<pre>
* {margin:0;auto:0;} /*This takes away a browser's default padding and margin settings for <em>all</em> elements, (which is what the asterisk indicates).  This way, you know you're starting from scratch, and elements will only have the spacing you want them to.*/
</pre>
<p></code></p>
<p><code></p>
<pre>
! important /*I always code sites to be cross-browser compatible.  One of the tools that helps me with this is the "! important" declaration. */
</pre>
<p></code></p>
<p>Basically, it works this way: Standards-compliant browsers, (Safari, Firefox, IE7, etc.), will recognize and apply this to the style you&#8217;ve assigned it to.  However, for a browser like IE6 that doesn&#8217;t recognize it, it goes unnoticed.  For example, say you needed to make up for a 3px difference in IE6 on a paragraph tag.  This is how you could accomplish it: </p>
<p><code></p>
<pre>
p{padding-right:0px ! important;padding-right:3px;}
</pre>
<p></code></p>
<p>IE6 will see the ! important declaration and essentially ignore it.  Then, it will hit the next &#8220;padding-right&#8221; declaration and add 3px to the right side of the paragraph.  However, for the standards-compliant browsers, they recognize and use the &#8220;! imporant&#8221; declaration.  What I like about this solution is that it&#8217;s perfectly valid CSS, so, at least in my eyes, it doesn&#8217;t seem like a true &#8220;hack&#8221;.  (<strong>NOTE:</strong> The order in which you use this technique is important.  The &#8220;! important&#8221; declaration must come <em>before</em> the second declaration.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.inditetheweb.com/2008/10/two-of-my-favorite-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
