<?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>CSSKarma &#187; beginner</title> <atom:link href="http://www.csskarma.com/blog/tag/beginner/feed/" rel="self" type="application/rss+xml" /><link>http://www.csskarma.com/blog</link> <description>display your style</description> <lastBuildDate>Tue, 31 Jan 2012 15:18:44 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Redirection Options</title><link>http://www.csskarma.com/blog/redirection-options/</link> <comments>http://www.csskarma.com/blog/redirection-options/#comments</comments> <pubDate>Wed, 27 Jan 2010 15:40:58 +0000</pubDate> <dc:creator>Tim</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[beginner]]></category> <category><![CDATA[htaccess]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[meta]]></category> <category><![CDATA[php]]></category><guid
isPermaLink="false">http://www.csskarma.com/blog/?p=736</guid> <description><![CDATA[Lately, I&#8217;ve been having to work with a lot of redirects and I was going through different redirection options with a client. So I thought I would do a quick write up about the different types of redirection. I also haven&#8217;t seen a collection of these in one place, so I thought I would put [...]]]></description> <content:encoded><![CDATA[<p><img
src="http://www.csskarma.com/blog/wp-content/uploads/banner_redirection.png" alt="article banner"></p><p>Lately, I&#8217;ve been having to work with a lot of redirects and I was going through different redirection options with a client. So I thought I would do a quick write up about the <strong>different types of redirection</strong>.</p><p>I also haven&#8217;t seen a collection of these in one place, so I thought I would put this together.</p><p>There are a few different types that are commonly use when redirecting users:</p><ul><li>.htaccess / apache</li><li>php header</li><li>javascript</li><li>meta refresh</li></ul><p>The top two are the one&#8217;s you&#8217;ll be using most often, I don&#8217;t really recommend the last two. But they <em>are</em> available, so I think they&#8217;re worth noting. So here they are in the order I would recommend:</p><h3>.htaccess / apache redirects</h3><pre><code>Redirect /old_directory http://example.com/newdirectory</code></pre><p>This redirection is most efficient at the apache level, but if you&#8217;re like me and are on shared hosting, getting into the apache installation probably isn&#8217;t an option. In that case you can put this in an <a
href="http://www.csskarma.com/blog/creating-an-htaccess-template/">.htaccess file</a> in the root directory of your site.</p><p>Using an .htaccess redirection is great for moving entire sites because you can not only redirect a page, but you can redirect entire sites and subdirectories with one line of code.</p><h3>PHP header redirects</h3><pre><code>&lt;?php header('Location: http://example.com/newdirectory/'); ?&gt;</code></pre><p>PHP header redirects are good for single page redirects and if you&#8217;re not comfortable working with the .htaccess file. This code goes at the very top of the page you&#8217;re trying to redirect. If it&#8217;s not there you may get a &#8220;headers already sent&#8221; error.</p><p>If you&#8217;re publishing out static HTML files, you can still use this by adding this code into your .htaccess file:</p><pre><code>AddType application/x-httpd-php .php .html .htm</code></pre><p>This will let you <strong>execute PHP in an HTML file</strong>.</p><h3>JavaScript redirects</h3><pre><code>&lt;script type="text/javascript"&gt;
&lt;!--
window.location = "http://example.com/newdirectory"
//--&gt;
&lt;/script&gt;</code></pre><p>JavaScript redirects are generally not used unless you&#8217;ve exhausted the other two options. If you don&#8217;t have access to the .htaccess file AND you can&#8217;t run server-side script on your page, this is an OK fallback option, but you have to make sure to provide a link to the forwarding page incase a user is browsing without JavaScript.</p><h3>Meta redirects</h3><pre><code>&lt;meta http-equiv="refresh" content="0;URL=http://example.com/newdirectory"&gt;</code></pre><p>As your last option, I don&#8217;t see this in the wild anymore, but it&#8217;s worth mentioning that it does exist and does technically work (I&#8217;m not sure about it&#8217;s validity in HTML 5). You would place this in the document HEAD with the rest of the meta elements.</p><p>content=0 is a second timer for the redirect, I have this one set to 0 so it will redirect immediately.</p><p><strong>Those are the options I&#8217;ve used in the past; did I miss anything? Maybe an ASP redirect? Let me know!</strong></p> ]]></content:encoded> <wfw:commentRss>http://www.csskarma.com/blog/redirection-options/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Quick Tip #3 &#8211; Textarea Fonts</title><link>http://www.csskarma.com/blog/qt3-textarea-fonts/</link> <comments>http://www.csskarma.com/blog/qt3-textarea-fonts/#comments</comments> <pubDate>Tue, 01 Sep 2009 02:28:27 +0000</pubDate> <dc:creator>Tim</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[beginner]]></category> <category><![CDATA[forms]]></category> <category><![CDATA[quick tip]]></category><guid
isPermaLink="false">http://www.csskarma.com/blog/?p=558</guid> <description><![CDATA[The Problem The font family in this text area default to Courier New, but that&#8217;s pretty ugly. The Goal Look at the nice font in this textarea! The Solution You have to redefine the font-family for a textarea. Just a weird quirk. textarea{ font-family:Verdana, Arial, Sans-Serif; }]]></description> <content:encoded><![CDATA[<p><img
src="http://www.csskarma.com/images/articles/textarea-fonts.jpg" alt="article banner"/></p><h4>The Problem</h4><p><textarea cols="40" rows="10" class="testfield courier">The font family in this text area default to Courier New, but that&#8217;s pretty ugly.</textarea></p><h4>The Goal</h4><p><textarea cols="40" rows="10" style="font-family: verdana">Look at the nice font in this textarea!</textarea></p><h4>The Solution</h4><p>You have to redefine the font-family for a <code>textarea</code>. Just a weird quirk.</p><pre><code>textarea{
font-family:Verdana, Arial, Sans-Serif;
}</code></pre>]]></content:encoded> <wfw:commentRss>http://www.csskarma.com/blog/qt3-textarea-fonts/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>10 Videos for the Web Community</title><link>http://www.csskarma.com/blog/10-videos-for-the-web-community/</link> <comments>http://www.csskarma.com/blog/10-videos-for-the-web-community/#comments</comments> <pubDate>Fri, 07 Aug 2009 15:07:40 +0000</pubDate> <dc:creator>Tim</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[beginner]]></category> <category><![CDATA[kindalame]]></category> <category><![CDATA[video]]></category> <category><![CDATA[youtube]]></category><guid
isPermaLink="false">http://www.csskarma.com/blog/?p=612</guid> <description><![CDATA[I was poking around YouTube last night watching some design videos and I thought I&#8217;d share them since it&#8217;s been my RSS feed has been a bit stale lately (I&#8217;ve been working on a pretty big redesign for this site). Enjoy! Web Design Mistakes Duration: 3m 52s Watching someone use a screen reader Duration: 3m [...]]]></description> <content:encoded><![CDATA[<p>I was poking around YouTube last night watching some design videos and I thought I&#8217;d share them since it&#8217;s been my RSS feed has been a bit stale lately (I&#8217;ve been working on a pretty big redesign for this site). <strong>Enjoy</strong>!</p><h4>Web Design Mistakes</h4><p
class="duration">Duration: 3m 52s</p><p><object
width="420" height="280"><param
name="movie" value="http://www.youtube-nocookie.com/v/vPO7lDZbcfA&#038;hl=en&#038;fs=1&#038;rel=0"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed
src="http://www.youtube-nocookie.com/v/vPO7lDZbcfA&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="280"></embed></object></p><h4>Watching someone use a screen reader</h4><p
class="duration">Duration: 3m 31s</p><p>This is really boring but any designer/developer really should watch it.</p><p><object
width="420" height="280"><param
name="movie" value="http://www.youtube-nocookie.com/v/VGeppPO5lQ0&#038;hl=en&#038;fs=1&#038;rel=0"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed
src="http://www.youtube-nocookie.com/v/VGeppPO5lQ0&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="280"></embed></object></p><h4>SxSW 08 with Jeffrey Zeldman</h4><p
class="duration">Duration: 9m 12s</p><p><object
width="420" height="280"><param
name="movie" value="http://www.youtube-nocookie.com/v/cjEb2NmheuQ&#038;hl=en&#038;fs=1&#038;rel=0"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed
src="http://www.youtube-nocookie.com/v/cjEb2NmheuQ&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="280"></embed></object></p><h4>Design Coding</h4><p
class="duration">Duration: 3m 22s</p><p><object
width="420" height="280"><param
name="movie" value="http://www.youtube-nocookie.com/v/a0qMe7Z3EYg&#038;hl=en&#038;fs=1&#038;rel=0"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed
src="http://www.youtube-nocookie.com/v/a0qMe7Z3EYg&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="280"></embed></object></p><h4>Web Design in 2 Minutes</h4><p
class="duration">Duration: 2m 17s</p><p><object
width="420" height="280"><param
name="movie" value="http://www.youtube-nocookie.com/v/J0NZ4ekNZoI&#038;hl=en&#038;fs=1&#038;rel=0"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed
src="http://www.youtube-nocookie.com/v/J0NZ4ekNZoI&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="280"></embed></object></p><h4>CSS3 Rounded Corners</h4><p
class="duration">Duration: 3m 25s</p><p><object
width="420" height="280"><param
name="movie" value="http://www.youtube-nocookie.com/v/sZqbUsZRLyk&#038;hl=en&#038;fs=1&#038;rel=0"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed
src="http://www.youtube-nocookie.com/v/sZqbUsZRLyk&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="280"></embed></object></p><h4>ExpressionEngine 2.0 Preview</h4><p
class="duration">Duration: 7m 52s</p><p><object
width="420" height="280"><param
name="movie" value="http://www.youtube-nocookie.com/v/YiefzD2J1_U&#038;hl=en&#038;fs=1&#038;rel=0"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed
src="http://www.youtube-nocookie.com/v/YiefzD2J1_U&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="280"></embed></object></p><h4>Dan Rubin Singing Piano Man</h4><p
class="duration">Duration: 2m 55s</p><p><object
width="420" height="280"><param
name="movie" value="http://www.youtube-nocookie.com/v/7p7I8orjytc&#038;hl=en&#038;fs=1&#038;rel=0"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed
src="http://www.youtube-nocookie.com/v/7p7I8orjytc&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="280"></embed></object></p><h4>SxSW 2008 with Kevin Lawver</h4><p
class="duration">Duration: 9m 17s</p><p><object
width="420" height="280"><param
name="movie" value="http://www.youtube-nocookie.com/v/Ikh6sCjzzZs&#038;hl=en&#038;fs=1&#038;rel=0"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed
src="http://www.youtube-nocookie.com/v/Ikh6sCjzzZs&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="280"></embed></object></p><h4>Faster HTML and CSS: Layout Engine Internals for Web Developers</h4><p
class="duration">Duration: 1hr 1m</p><p><object
width="420" height="280"><param
name="movie" value="http://www.youtube-nocookie.com/v/a2_6bGNZ7bA&#038;hl=en&#038;fs=1&#038;rel=0"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed
src="http://www.youtube-nocookie.com/v/a2_6bGNZ7bA&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="280"></embed></object></p> ]]></content:encoded> <wfw:commentRss>http://www.csskarma.com/blog/10-videos-for-the-web-community/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 7/14 queries in 0.033 seconds using disk: basic

Served from: www.csskarma.com @ 2012-02-09 16:15:13 -->
