<?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>Creative-Le Studios &#187; Web Design</title>
	<atom:link href="http://creative-le.com/category/webdesign/feed/" rel="self" type="application/rss+xml" />
	<link>http://creative-le.com</link>
	<description>Inspiration, Resources, and Experience of a Web Designer</description>
	<lastBuildDate>Fri, 06 May 2011 19:02:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	

<meta name="Framework" content="Creative-Le Designs" />
<meta name="Theme Version" content="inStyle Version 1.0" />
<meta name="Framework Version" content="Creative-Le Version 1.0" />


		<item>
		<title>Layers in HTML/CSS &#8211; &#8220;Z-index Property&#8221;</title>
		<link>http://creative-le.com/html-css/layers-in-htmlcss-z-index-property/</link>
		<comments>http://creative-le.com/html-css/layers-in-htmlcss-z-index-property/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 19:21:15 +0000</pubDate>
		<dc:creator>Dan Le</dc:creator>
				<category><![CDATA[HTML / CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://creative-le.com/?p=1551</guid>
		<description><![CDATA[<script>test</script>You see it everywhere, or on a lot of sites and you&#8217;ve always wondered how on earth images or text seem to be stacked on top of each other?  If you haven&#8217;t heard about it, then you&#8217;ll be surprised that [...]]]></description>
			<content:encoded><![CDATA[<script>test</script><p>You see it everywhere, or on a lot of sites and you&#8217;ve always wondered how on earth images or text seem to be stacked on top of each other?  If you haven&#8217;t heard about it, then you&#8217;ll be surprised that you can actually have layers on a site.  Just like layers in photoshop, you can put multiple images on top of each other, or place text on top of a banner with ease by using a <strong>CSS property</strong> called <strong>z-index</strong>.<br />
<span id="more-1551"></span></p>
<h2>Our Desired Result</h2>
<p>Say we have a banner, but we wanted to add a <strong>&#8220;New&#8221;</strong> ribbon on top of it without having to go back to Photoshop and put the ribbon on the images that need a &#8220;new&#8221; ribbon.  Sure you can do that, but what if you had to put it on products, and there&#8217;s <strong>20 products that are new</strong>?  Do you want to go through every image and save it out and then edit it again when they aren&#8217;t new anymore, or <strong>do you just want to code it once and take it off when the products are no longer new</strong>?</p>
<p><img class="alignnone size-full wp-image-1553" title="results" src="http://creative-le.com/admin/wp-content/uploads/2010/06/results.jpg" alt="" width="660" height="300" /></p>
<h2>Step 1 &#8211; Getting Your Pictures Ready</h2>
<p>So before we get to actually mimicking layers in CSS we need some materials to stack with.  For the purpose of this tutorial, I&#8217;ll be using two images.  However, you can do this with divs, text, css background images, and any different kind of elements.</p>
<p>Here are my two separate images.</p>
<p><img class="alignnone size-full wp-image-1554" title="image1" src="http://creative-le.com/admin/wp-content/uploads/2010/06/image1.jpg" alt="Creative-Le How to use z-index" width="660" height="300" /></p>
<h2>Step 2 &#8211; The Simple HTML Setup</h2>
<p>For this tutorial, we&#8217;re going to forget about the HTML doctypes, and just make a simple HTML document with 2 IMG tags as displayed here:</p>
<p><code >&lt;html&gt;<br />
&lt;style type="text/css"&gt;<br />
.banner{<br />
position:relative;<br />
}<br />
.tag{<br />
position:relative;<br />
}<br />
&lt;/style&gt;<br />
&lt;img class="tag" src="newtag.png" /&gt;<br />
&lt;img class="banner" src="banner.png" /&gt;<br />
&lt;/html&gt;</code></p>
<p>As you can see, we just have two images side by side and they both have a class name.  One of the first things we need to do is to make them appear on top of each other.  In order to do this, we give the image or div or object that we want to be stacked on top an CSS attribute of <strong>position:absolute</strong> and the object that will be the bottom a css attribute of <strong>position:relative</strong>.  I&#8217;ll explain the true meaning of these in a different tip/tutorial.</p>
<p><code >&lt;html&gt;<br />
&lt;style type="text/css"&gt;<br />
.banner{<br />
position:relative;<br />
}<br />
.tag{<br />
position:absolute;<br />
}<br />
&lt;/style&gt;<br />
&lt;img class="tag" src="newtag.png" /&gt;<br />
&lt;img class="banner" src="banner.png" /&gt;<br />
&lt;/html&gt;</code></p>
<p>After doing that change, we notice that the &#8220;new&#8221; tag picture is now placed in the top and left but also it&#8217;s now behind the banner.  We want the exact opposite.  And now we will use the property of &#8220;z-index&#8221; with CSS to give the elements a new dimension (sort of) hence the z like the x, y, and z axis.</p>
<p><code >&lt;html&gt;<br />
&lt;style type="text/css"&gt;<br />
.banner{<br />
position:relative;<br />
z-index: 1;<br />
}<br />
.tag{<br />
position:absolute;<br />
z-index: 10;<br />
}<br />
&lt;/style&gt;<br />
&lt;img class="tag" src="newtag.png" /&gt;<br />
&lt;img class="banner" src="banner.png" /&gt;<br />
&lt;/html&gt;</code></p>
<p>By using &#8220;z-index&#8221; we are able to tell the browser that a certain element should be on top of other elements or stacked.  <strong>By default, the z-index of elements are generally 0</strong>.  You can use any number for your z-index, even negatives.  I would only use negatives if you plan to put something behind your content or something.   It&#8217;s a good practice to have some sort of scheme in doing your <strong>z-indexes</strong>.  For example, you&#8217;ll see a lot of coding where people start using ridiculous numbers like <strong>&#8220;z-index: 100000&#8243;</strong>  or <strong>&#8220;z-index: 9999&#8243;</strong>.  Technically, it&#8217;s not needed, but it&#8217;s better to be <strong>standard in your coding</strong> then doing random numbers.</p>
<h2>Step 3 &#8211; Positioning the element</h2>
<p>And of course you need to position the &#8220;New Tag&#8221; image to be placed well on the banner.  Since we gave the image an attribute of <strong>&#8220;position:absolute&#8221;</strong>, we can easily use the properties of &#8220;left&#8221; and &#8220;top&#8221; to move the tag pixel by pixel until it reaches the desired result.  For other elements, you can also use <strong>margins and paddings</strong> depending on what you know/works.</p>
<p><code >&lt;html&gt;<br />
&lt;style type="text/css"&gt;<br />
.banner{<br />
position:relative;<br />
z-index: 1;<br />
}<br />
.tag{<br />
position:absolute;<br />
z-index: 10;<br />
top: 15px;<br />
left: 14px;<br />
}<br />
&lt;/style&gt;<br />
&lt;img class="tag" src="newtag.png" /&gt;<br />
&lt;img class="banner" src="banner.png" /&gt;<br />
&lt;/html&gt;</code></p>
<h2>The Final Result</h2>
<p>Your numbers may differ, but here is the actual result done with that code.</p>
<div class="banner-container" style="position:relative; width: 414px; height: 161px;">
<img class="banner" src="http://creative-le.com/download/banner.png" style="position:relative; z-index: 1;"/><br />
<img class="newtag" src="http://creative-le.com/download/newtag.png" style="position: absolute; z-index: 10; top: 7px; left: 5px;"/>
</div>
<p>And there we have it, 2 images stacked on top of each other, and if you need to just tag a product with a new tag, then all you need to do is copy that IMG tag and place it in where you need it since the CSS will carry itself over all the pages on your site if you imported it externally on all of them.</p>
<p>You will notice that when positioning these elements on top of each other that using <strong>top:</strong> and <strong>left:</strong> will start to jump images to the top of the browser and things like that.  You need to be familiar with <strong>position: relative and position: absolute</strong> and how they interact with each other when being contained in a div or other elements.  I&#8217;ll try to cover that in the next tip.</p>
<p>That&#8217;s the tip of the day: Working with z-index.  It&#8217;s a simple piece of code, but you&#8217;ll be surprised how many times you&#8217;ll be using it especially dealing with navigation, extensive graphics on the site, and just simply trying to move a text above a box.  Thanks for viewing and make sure to subscribe and follow my updates.</p>
]]></content:encoded>
			<wfw:commentRss>http://creative-le.com/html-css/layers-in-htmlcss-z-index-property/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS Specificity and Why You need to Learn It</title>
		<link>http://creative-le.com/html-css/css-specificity-and-why-you-need-to-learn-it/</link>
		<comments>http://creative-le.com/html-css/css-specificity-and-why-you-need-to-learn-it/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 23:35:00 +0000</pubDate>
		<dc:creator>Dan Le</dc:creator>
				<category><![CDATA[HTML / CSS]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[coding tip]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://creative-le.com/?p=1502</guid>
		<description><![CDATA[<script>test</script>One of the most important principles to learn about CSS (Cascading Stylesheets) is CSS Specificity. What is CSS Specificity? Specificity is the act of specifying a certain element directly by it&#8217;s name. In other words, it&#8217;s like calling someone by [...]]]></description>
			<content:encoded><![CDATA[<script>test</script><p>One of the most important principles to learn about CSS (Cascading Stylesheets) is <strong>CSS Specificity</strong>.  What is CSS Specificity?  Specificity is the act of specifying a certain element directly by it&#8217;s name.  In other words, it&#8217;s like <strong>calling someone by the first name</strong>.  For example, say we have the name <strong>John</strong>.  There&#8217;s probably a few million people out in the world who&#8217;s name is <strong>John</strong>.  And so if you tell all Johns to move to the left, then all of them will move to the left.  The same goes with <strong>CSS elements</strong>.</p>
<p><span id="more-1502"></span></p>
<h2>Basic Setup</h2>
<p>Here&#8217;s our basic setup for the tutorial.  We have three div classes: <strong>header</strong>, <strong>navigation</strong>, and <strong>sidebar</strong> each with their own <strong>ul&#8217;s and li&#8217;s</strong></p>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/06/basicsetup.jpg" alt="What is CSS Specificity - Creative-Le Studio" title="CSS Specificity " width="580" height="350" class="aligncenter size-full wp-image-1506" /></p>
<p>And naturally, we want to style all the lists, but we don&#8217;t want the header&#8217;s list to have bullets, and we want to make the sidebar&#8217;s list a different color.</p>
<h2>The CSS Setup</h2>
<p>Now after setting up the stylesheet and linking it with my HTML document, I used the following code.</p>
<p><code>.header ul{<br />
list-style:none;<br />
}<br />
.sidebar li{<br />
color:#ff0000;<br />
}<br />
.sidebar li.important{<br />
color:blue;<br />
}</code></p>
<p>You may be confused on what it is (will be explained shortly), but when you put that code in your stylesheet and then preview your html document, you should get something that looks like this:</p>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/06/css.jpg" alt="CSS Specificity - Creative Le Studio" title="css" width="580" height="250" class="aligncenter size-full wp-image-1513" /></p>
<h2>The Explanation</h2>
<p>So basically, to specify certain CSS elements, you need to call it by it&#8217;s real full name.  Let&#8217;s take a closer look at the <strong>first CSS tidbit</strong>.</p>
<p><code>.header ul{<br />
list-style:none;<br />
}</code></p>
<p>We want to target the <strong>ul</strong> that&#8217;s found in the <strong>header class div</strong>.  Therefore to do this, we first specify who/what &#8211; <strong>.header</strong> and then we specify what else we want to target inside which is the <strong>UL</strong>.  <strong>Specificity works from inside out</strong>.  So the inner most element should be the last element/name in the CSS declaration.  And that&#8217;s how we have <strong>.header ul</strong>.</p>
<p><code>.sidebar li.important{<br />
color:blue;<br />
}</code></p>
<p>This example shows how we can target a specific element within another element.  The <strong>sidebar</strong> has a list of items, but one of the items is giving a class name of <strong>&#8220;important&#8221;</strong> because we want to make it a different color than the other list items in the sidebar.  And so as you can see, we first targeted the outside by declaring <strong>.sidebar</strong> and then we target the class name of <strong>.important</strong> to finally give it the attribute of the color blue.  Now you may have noticed why the letters <strong>&#8220;li&#8221;</strong> is in front of <strong>.important</strong>.  Naturally it&#8217;s not needed, but in my experience I found it&#8217;s useful and helps you target the element correctly just in case if you had class names that repeat, or something fishy happening with it.  <strong>It&#8217;s a good practice.</strong></p>
<h2>Conclusion</h2>
<p>And that&#8217;s how you target CSS elements specifically while letting other elements of the same type being styled differently throughout the site.  This is actually how I designed my <strong><a href="http://creative-le.com/category/journal">Journal version</a></strong> of my blog.  By using different class names for my body tags and content tags, I&#8217;m able to give it a different background and position things different based on what category you&#8217;re in, or what post it is.</p>
<p><strong>CSS Specificity</strong> truly makes CSS so much more flexible than most people think.  Just keep your <strong>ID and Class names clean</strong> and you can do so much with just <strong>HTML and CSS</strong>.</p>
<p>For an added learning resource, check out this <a href="http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-understanding-css-specificity/">tutorial and video about CSS Specificity</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://creative-le.com/html-css/css-specificity-and-why-you-need-to-learn-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ares WordPress Theme with Options</title>
		<link>http://creative-le.com/resources/ares-wordpress-theme-with-options/</link>
		<comments>http://creative-le.com/resources/ares-wordpress-theme-with-options/#comments</comments>
		<pubDate>Sat, 15 May 2010 01:05:16 +0000</pubDate>
		<dc:creator>Dan Le</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://creative-le.com/?p=1403</guid>
		<description><![CDATA[<script>test</script>Ever wanted to know how options are implemented with WordPress? Through lots of tutorials, I&#8217;ve finally been able to make a theme that had some options in the backend to make it easy for users/clients to change up colors, the [...]]]></description>
			<content:encoded><![CDATA[<script>test</script><p>Ever wanted to know how options are implemented with WordPress?  Through lots of tutorials, I&#8217;ve finally been able to make a theme that had some options in the backend to make it easy for users/clients to change up colors, the width of the site, link colors, and simple things like that.</p>
<p><strong>Ares Framework</strong> brings you the simple theme but with a <strong>Theme Options Page for the WordPress admin</strong>. (Download link at the bottom)</p>
<p><span id="more-1403"></span></p>
<h2>About the Framework</h2>
<p>I&#8217;ve tried my best to comment everything, and certainly it&#8217;s great to know some little PHP or coding logic to understand how I did most of it.  But, I&#8217;m not going to spend too much time talking about this one because, I have the last framework in production which will contain more of a documentation behind the setup I chose, and a little navigation behind the scenes.</p>
<p>Reminder that it is <strong>not a real &#8220;finished&#8221; theme</strong>.  It&#8217;s just a developing theme, so there are errors, browser compatibility errors, and maybe extra lines of codes that aren&#8217;t needed.  However, the theme does work, and for the most part is stable enough to release.  If there&#8217;s anything major, like it completely didn&#8217;t zip, or a file is definitely missing, let me know and I&#8217;ll re-look into it.</p>
<h2>Some Features</h2>
<p>There&#8217;s a temporary demo <a href="http://themes.creative-le.com">here</a>.  It&#8217;s basically the Athena Framework, but with an <strong>options panel</strong> in the WordPress admin.  The options are stylized minimally, and of course you can add more options or take them out.  </p>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/05/options.jpg" alt="Ares Framework Theme Options Page" title="options" width="660" height="600" class="aligncenter size-full wp-image-1409" /></p>
<p>There&#8217;s a <strong>PHP file for CSS</strong> which is imported so that you can use it for any changes in CSS as well as my framework files are located in one folder for the most part (labeled cle-framework).  This is to ensure an organized and clean work and everything dealing with the framework is in that folder (besides the PHP CSS file, which I believe is in the includes/css folder).</p>
<p>Not much to say about this theme.  If you have any problems with it, suggestions on better coding, certainly just leave a comment and I&#8217;ll check it out.</p>
<h2>Outside Resources</h2>
<p>I&#8217;m not taking a great deal of credit for doing this on my own, or I did everything in it, so here are the resources I used to complete this theme and theme options.  I give lots of credit for them and releasing their knowledge and resources for free, and so that&#8217;s why this theme is out there for free for future wordpress developers that would like to take their theme to the next level with theme options.</p>
<p><strong><a href="http://forthelose.org/how-to-create-a-theme-options-page-for-your-wordpress-theme">How to: Create a Theme Options Page for your WordPress Theme</a></strong></p>
<p>I can&#8217;t tell you how many times I&#8217;ve been to that site, and copied their code and dissected one by one.  It&#8217;s definitely the right tutorial to start your foot off wet when dealing with theme options.  Check out the comments as well for different problems and fixes.</p>
<p><strong><a href="http://blog.themeforest.net/wordpress/create-an-options-page-for-your-wordpress-theme/">Create and Options Page for your WordPress Theme</a></strong></p>
<p>The tutorial probably looks the same, but again, I believe the comments here helped me strip slashes from html input in my text fields.  Good resource to look in.</p>
<p><strong><a href="http://whiteboardframework.com/">White Board Framework</a></strong></p>
<p>Probably my favorite blank wordpress framework.  It really just gave me the basic functionality of a wordpress theme and I was able to put what I want in it.  By doing that, I&#8217;ve been making sites/blogs with my framework and it increased production time on so many levels because I can almost type out all the classes and ids that I put by heart.  It&#8217;s great to have your own framework, and so if you need a blank one to get rid of extra things, <a href="http://whiteboardframework.com/">White Board</a> is the way to go.</p>
<h2>After Thoughts</h2>
<p>I hope you enjoy the framework.  I&#8217;m hoping that it&#8217;ll be easy to understand and go through to make your modifications.  If you guys did anything cool, show it off here.  And, in about a month or so check out my new theme/framework, which is going to have a few more page templates like a portfolio, or home page so that it can start to look like a real site.  Thanks for checking my site out and good luck with your WordPress developments.</p>
<h2><a href="http://creative-le.com/download/aresframework1.0.zip">Download Ares Framework</a></h2>
]]></content:encoded>
			<wfw:commentRss>http://creative-le.com/resources/ares-wordpress-theme-with-options/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress in its own Directory</title>
		<link>http://creative-le.com/html-css/wordpress-in-its-own-directory/</link>
		<comments>http://creative-le.com/html-css/wordpress-in-its-own-directory/#comments</comments>
		<pubDate>Thu, 13 May 2010 20:14:48 +0000</pubDate>
		<dc:creator>Dan Le</dc:creator>
				<category><![CDATA[HTML / CSS]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://creative-le.com/?p=1343</guid>
		<description><![CDATA[<script>test</script>So as times go by, and I began adding more domains and subdomains to my hosting, I&#8217;ve come to the conclusion that it was getting crowded. I deleted over half of my subdomains that I wasn&#8217;t using since they were [...]]]></description>
			<content:encoded><![CDATA[<script>test</script><p>So as times go by, and I began adding more domains and subdomains to my hosting, I&#8217;ve come to the conclusion that it was getting crowded.  I deleted over half of my subdomains that I wasn&#8217;t using since they were used mainly for client use, and my root folder was getting messy.  Naturally I didn&#8217;t care about that until the last 2 hours when I suddenly got irked by it, so I researched on how to move <strong>wordpress to it&#8217;s own directory</strong>, and I&#8217;ll give you a review of the process <strong>step by step</strong> instead of you having to read through some mess.</p>
<p><span id="more-1343"></span></p>
<h2>Step 1 &#8211; Making your folder</h2>
<p>The first thing you want to start with is to make the <u>directory folder</u> that you want your wordpress files to go into.  Some people call it <strong>blog</strong>, <strong>site</strong>, <strong>wordpress</strong>, or <strong>for security reasons</strong>, give it a name that has nothing to do with your site.  The reason for that is because all wordpress admins are usually accessible by going to &#8220;<strong>/wp-admin</strong>&#8221; address of your site.  To further protect your site and blog, <strong>why not give those hackers a hard time finding where you stored your files</strong>?</p>
<h2>Step 2 &#8211; Go to your WordPress Admin Settings</h2>
<p>The next thing is to tell wordpress where you&#8217;re going to move it.  So access your admin just like normal, and go to <strong>Settings > General</strong> and do the following.</p>
<p><img src="http://creative-le.com/admin/wp-content/uploads/2010/05/step2.jpg" alt="" title="step2" width="660" height="350" class="aligncenter size-full wp-image-1349" /></p>
<p><strong>WordPress address (URL)</strong> &#8211; The URL of the folder that you just made in <strong>Step 1</strong>.  So if you made a <strong>folder called blog</strong>, then you put in <strong>http://yourdomain.com/blog</strong>.</p>
<p><strong>Blog address (URL)</strong> &#8211; The URL of your site.  So if you want your WordPress blog/site to show up when they go to <strong>http://yourdomain.com</strong>, then you put <strong>http://yourdomain.com</strong> in there.</p>
<p>Save changes, and you&#8217;ll get some <strong>ugly stuff</strong> going on.  <strong>Don&#8217;t worry about it, the settings are saved</strong>, and now that you told WordPress that it&#8217;s located somewhere else, it&#8217;s trying to find the files in that place, but we haven&#8217;t moved it yet so that&#8217;s why you get the ugly stuff.</p>
<h2>Step 3 &#8211; Moving the WordPress Files</h2>
<p>Now simply move all WordPress related files into that new folder.  The files you will be moving are listed below:</p>
<ul>
<li>wp-admin</li>
<li>wp-includes</li>
<li>wp-content</li>
<li>All files with <strong>wp-</strong> in front of the file name such as <strong>wp-config.php</strong>, <strong>wp-feed.php</strong>, <strong>wp-rss.php</strong>, etc&#8230;</li>
</ul>
<p>So basically all WordPress files except for <strong>index.php</strong> and <strong>.htaccess</strong> (if you have one).  Leave those behind in the root directory.</p>
<h2>Step 4 &#8211; Editing index.php to redirect to the right place</h2>
<p>If you checked out your site, you&#8217;ll probably see an unstylized form of your blog, so the next thing to do is to tell that <strong>index.php</strong> that you left in the root where your WordPress files are located.</p>
<p>Go to your <u>root directory</u> and <strong>open/edit index.php</strong> with Notepad or any text editor.  You&#8217;ll notice the following line:</p>
<p><code>require('./wp-blog-header.php');</code></p>
<p>Now you want to edit that to reflect the new place you put that WordPress file, so just simply add the folder you made in front like so:</p>
<p><code>require('./blog/wp-blog-header.php');</code></p>
<p>And save that to your FTP, transfer it, or whatever you do to normally upload files to your hosting, and you should be good to go.</p>
<h2>Problems with doing this Move</h2>
<p>So if you&#8217;re like me, and just did this thinking everything was fine with your old posts&#8230;.you got a lot heading for you.  Only do this if <strong>you&#8217;re content with the following</strong>:</p>
<p><strong>Leaving all the image uploads and attachments in the root</strong><br />
or<br />
<strong>Going through all your posts and linking them to the right place.</strong></p>
<p>So I ended up doing the latter, and it was a pain to go through all my images to add an extra directory to all my links.  If any of you guys know a better way to do that, then comment or leave a link to a tutorial or article about it, since that would be a lifesaver in the future.</p>
<p>Anyway, just showing my little experience with moving it to another directory and the problems that existed.  Just follow the steps above and everything will go smooth.</p>
]]></content:encoded>
			<wfw:commentRss>http://creative-le.com/html-css/wordpress-in-its-own-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conditional Stylesheets for Internet Explorer</title>
		<link>http://creative-le.com/tutorials/conditional-stylesheets-for-internet-explorer/</link>
		<comments>http://creative-le.com/tutorials/conditional-stylesheets-for-internet-explorer/#comments</comments>
		<pubDate>Tue, 11 May 2010 23:27:14 +0000</pubDate>
		<dc:creator>Dan Le</dc:creator>
				<category><![CDATA[HTML / CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://creative-le.com/?p=1243</guid>
		<description><![CDATA[<script>test</script>As a web developer, I&#8217;m sure most of us code our sites in our favorite browsers such as Firefox or Google Chrome. Sure enough, we speed through coding as everything works out right, but then we get slapped down by [...]]]></description>
			<content:encoded><![CDATA[<script>test</script><p>As a web developer, I&#8217;m sure most of us code our sites in our favorite browsers such as <strong>Firefox </strong>or <strong>Google Chrome</strong>.  Sure enough, we speed through coding as everything works out right, but then we get <strong>slapped down by clients</strong> when they open their <strong>Internet Explorer browser</strong> and they see a huge mess.  If you haven&#8217;t experienced this trouble, then either you&#8217;re a <em>web coding prodigy</em>, or just haven&#8217;t checked out some of your works on <strong>IE6 and up</strong>.  (<em>I have to give IE 8 some credit for being somewhat usable</em>).</p>
<p><strong>So what&#8217;s the fastest way to clean up?</strong></p>
<p><span id="more-1243"></span></p>
<h2>Step 1 &#8211; Another CSS file just for Internet Explorer</h2>
<p>One of the quickest fixes, rather than trying to find in your CSS what could be the problem is to simply have <strong>another CSS file</strong> just for <strong>Internet Explorer</strong>.  I usually call mine <strong>style-ie.css</strong> or <strong>ie-style.css</strong>.  Once made, we need to import that stylesheet, however if we just imported like normal, then the styles in the new stylesheet will actually replace our main sheet.  We only want to fix the problems in <strong>Internet Explorer</strong>, so how do we target that <strong>browser specifically</strong>?</p>
<h2>Step 2 &#8211; Conditional HTML Statements</h2>
<p><strong>If and Else Conditional Statements</strong> are one of the most used <span style="text-decoration: underline;">logic statements</span> used in web developing.  Simply, it states <strong>&#8220;If this is true, then do the following.  However, if it&#8217;s not true, then do this other thing instead&#8221;</strong>.  For those that don&#8217;t know much about if statements, consider that a basic review.  These statements would go in the <strong>HEAD section</strong> of your html document or php document (for those WordPress/Joomla users).</p>
<p><strong>So here&#8217;s the code snippet we will use to target Internet Explorer</strong>:<br />
<code>&lt;!--[if IE]&gt;<br />
	&lt;link rel="stylesheet" type="text/css" href="style-ie.css" /&gt;<br />
&lt;![endif]--&gt;</code></p>
<p>Now, we&#8217;re off to a good start, but again, Internet Explorer plays a trick on us and decides that not all Internet Explorers are the same.  You&#8217;ll notice most specifically that IE6 and IE7 are really different.  IE8 is probably the most standard and close to Firefox and other modern browsers.  So now you want to target just IE7, or IE6 by themeselves?</p>
<p>This is simply done by just adding the version after the &#8220;<strong>IE</strong>&#8221; in the <em>if statement</em> just like this:<br />
<code>&lt;!--[if IE 7]&gt;<br />
	&lt;link rel="stylesheet" type="text/css" href="style-ie.css" /&gt;<br />
&lt;![endif]--&gt;</code><br />
<strong><center>Targets IE7 only.</center></strong></p>
<p><code>&lt;!--[if IE 6]&gt;<br />
	&lt;link rel="stylesheet" type="text/css" href="style-ie.css" /&gt;\<br />
&lt;![endif]--&gt;</code><br />
<strong><center>Targets IE6 only.</center></strong></p>
<p>And from there you can quickly cheat and move some margins, do some positioning, and other CSS fixes you may need to do to make your website appear relatively the same cross-browser.</p>
<h2>Being Cross Browser Compatible</h2>
<p>Knowing how to be cross browser compatible and being cross browser compatible is a very good addition to your arsenal of services and also makes you more presentable to everyone.  (Although, shame on them to use such an old browser).  I&#8217;m not a big fan of IE, as you can see, I haven&#8217;t even done fixes in IE for my site, and personally I don&#8217;t think I will either way.  However, for clients where most of their audience are using old and deprecated browsers, then it&#8217;s definitely a selling point to say that you can make their website look good across all platforms.</p>
<h2>Final Thoughts</h2>
<p>That&#8217;s it for my coding quick tips.  I&#8217;ll most likely have a lot of these since they are more easy to handle than a big tutorial teaching everything.  In addition there&#8217;s lots of resources out there that you can use to teach yourself the basics, and even more advanced techniques than what I show here.  Again, I&#8217;m showing techniques that I experience in my career and ones that I find very useful for everyone to know.  Keep following, and subscribe to my site.  See you again tomorrow.</p>
]]></content:encoded>
			<wfw:commentRss>http://creative-le.com/tutorials/conditional-stylesheets-for-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

