<?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>DansNetwork.com &#187; Design</title>
	<atom:link href="http://dansnetwork.com/category/design/feed/" rel="self" type="application/rss+xml" />
	<link>http://dansnetwork.com</link>
	<description>Web Design, Javascript, CSS, and More...</description>
	<lastBuildDate>Sun, 29 Apr 2012 11:36:29 +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>Test With IE On Your Mac OS X</title>
		<link>http://dansnetwork.com/test-with-ie-on-your-mac-os-x/</link>
		<comments>http://dansnetwork.com/test-with-ie-on-your-mac-os-x/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 19:33:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[ietester]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://dansnetwork.com/?p=171</guid>
		<description><![CDATA[Requirements:
- Mac OS X (Snow Leopard was used for this article)
- XAMPP/Apache  or Mac webserver of your choice
- VirtualBox
- Windows  XP, Vista, or 7 install disk
- IETester (allows for testing in  multiple flavors of Internet Explorer using tabs)
We've all seen  this show before. The tricky part is finding your way back [...]]]></description>
			<content:encoded><![CDATA[<p>Requirements:<br />
- <strong>Mac OS X</strong> (Snow Leopard was used for this article)<br />
- <strong>XAMPP/Apache  or Mac webserver of your choice<br />
- <a title="VirtualBox" href="http://virtualbox.org">VirtualBox</a><br />
- Windows  XP, Vista, or 7 install disk<br />
- <a title="IETester" href="http://www.my-debugbar.com/wiki/IETester/HomePage">IETester</a></strong> (allows for testing in  multiple flavors of Internet Explorer using tabs)</p>
<p>We've all seen  this show before. The tricky part is finding your way back to XAMPP  (Apache) from IE Tester while maintaining a consistent base URL. This  isn't important when running a few static websites, but many frameworks  have this value stored in its database. When you view your site using a  different URL, links to static files (CSS, images, etc.) and other pages  become broken. In a few easy steps I'm going to show you one method to  resolve this issue.</p>
<p>Go ahead and install the above applications  and OSes if you haven't already. Use the default network mode  of "NAT" for VirtualBox. I'm going to assume that you can access your  local sites (from your Mac) using - http://localhost/<em>sitename</em>/</p>
<p>- <strong>Step  1:</strong> Boot up your Windows install and use ipconfig (Run -&gt; cmd  -&gt; ipconfig) to get your gateway IP. It was 10.0.0.2 for me.</p>
<p>- <strong>Step  2:</strong> Add the following lines to both system's (Mac and virtual  Windows install) hosts files (http://en.wikipedia.org/wiki/Hosts_file).  'localhost.com' can be replaced with a URL of your choice.</p>
<pre class="brush: plain;">
# Mac:
localhost.com 127.0.0.1

# Windows:
localhost.com 10.0.0.2
</pre>
<p>- <strong>Step 3:</strong> Be sure  that all of your web frameworks (Wordpress, Magento, etc.) are aware of  your new base URL 'localhost.com' (or whatever you chose in step 2).</p>
<p>- <strong>Step  4:</strong> Access one of your sites from each of your operating system's  browser using - http://localhost.com/<em>sitename</em>/</p>
]]></content:encoded>
			<wfw:commentRss>http://dansnetwork.com/test-with-ie-on-your-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Content Expirator &#8211; jQuery Content Expiration Plugin</title>
		<link>http://dansnetwork.com/content-expirator-jquery-content-expiration-plugin/</link>
		<comments>http://dansnetwork.com/content-expirator-jquery-content-expiration-plugin/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 20:19:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://dansnetwork.com/?p=125</guid>
		<description><![CDATA[Content Expirator is a jQuery utility plugin that provides an easy way to give DOM elements an expiration date. If the element is found to be expired, its 'display' parameter is set to 'none'. A better approach would be to perform this function server side with a server side language, but this is a quick [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://static.dansnetwork.com/img/content_expirator.jpg" class="right" alt="Content Expirator" title="Content Expirator" /><strong>Content Expirator</strong> is a jQuery utility plugin that provides an easy way to give DOM elements an expiration date. If the element is found to be expired, its 'display' parameter is set to 'none'. <i>A better approach would be to perform this function server side with a server side language, but this is a quick and easy way to implement it client side.</i></p>
<p><strong>Download:</strong> <a href="http://static.dansnetwork.com/source/jQuery/jquery.content_expirator-0.1.0.js" title="Content Expirator">jquery.content_expirator-0.1.0.js</a></p>
<p>&nbsp;</p>
<p class="clear">Let's say your client has given you a flyer to put on their website for an event.</p>
<pre class="brush: xml;">&lt;img src=&quot;easter_flyer_2010.jpg&quot; class=&quot;aligncenter&quot; alt=&quot;Easter Flyer&quot; /&gt;</pre>
<p>After Easter is over, you're going to want to take this flyer off of their site. Instead of manually editing the site on the Monday after Easter to take it down, you can give it an expiration date so that it isn't displayed after Easter.</p>
<pre class="brush: xml;">&lt;img src=&quot;easter_flyer_2010.jpg&quot; class=&quot;exp-2010-04-04 aligncenter&quot; alt=&quot;Easter Flyer&quot; /&gt;</pre>
<p>The Content Expirator looks for an element containing a class name (must be the first one listed) containing the prefix 'exp'. When it comes across one, it compares the date (formatted year-month-day) with the current day to decide if the element's 'display' (style) parameter should be set to 'none'.</p>
<p>Calling The Function:</p>
<p>default:</p>
<pre class="brush: jscript;">$(document).ready(function(){
    jQuery.contentExpirator();
});
// looks for -&gt; 'exp-year-month-day'</pre>
<p>custom prefix:</p>
<pre class="brush: jscript;">$(document).ready(function(){
    jQuery.contentExpirator('end');
});
// looks for -&gt; 'end-year-month-day'</pre>
<div class="codenplay">
&lt;script&gt;
<textarea class="cpJS">
(function($){
    $.contentExpirator = function(prfx){
        var pfix = prfx || 'exp';
        $("[class|="+pfix+"]").each(function(){
            var eString = $(this).attr('class').split(' ')[0];
            var dString = eString.split('-');
            var d = new Date(dString[1],dString[2].toString()-1,dString[3]);
            var today = new Date();
            if(d < today){
                $(this).css('display','none');
            }
        });
    }
})(jQuery);</textarea>
&lt;html&gt;
<textarea class="cpHTML">
<!doctype html>
<html lang="en" class="no-js">
<head>
  
  <meta charset="utf-8" />
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
  <script>
    $(document).ready(function(){
      jQuery.contentExpirator();
    });
  </script>
</head>
<body>
  <div class="exp-2100-12-03">You Should See Me</div>
  <div class="exp-2010-12-03">You Should Not See Me</div>
</body>
</html>
</textarea>
Result:<br /><iframe src="http://dansnetwork.com/wp-content/plugins/codenplay/index.html" class="cpResult run"></iframe><br /><a class="cpRun" title="Run" href="#run">Run</a></div><script type="text/javascript">var codenplay={}; codenplay.WP_PLUGIN_URL = "http://dansnetwork.com/wp-content/plugins";</script><script type="text/javascript" src="http://dansnetwork.com/wp-content/plugins/codenplay/js/LAB.min.js"></script><link rel="stylesheet" type="text/css" href="http://dansnetwork.com/wp-content/plugins/codenplay/css/style.css" />]]></content:encoded>
			<wfw:commentRss>http://dansnetwork.com/content-expirator-jquery-content-expiration-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Save For Web&#8217;s Mysterious White Border</title>
		<link>http://dansnetwork.com/save-for-webs-mysterious-white-border/</link>
		<comments>http://dansnetwork.com/save-for-webs-mysterious-white-border/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 22:30:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://blog.dansnetwork.com/2007/12/22/save-for-webs-mysterious-white-border/</guid>
		<description><![CDATA[ 
Photoshop has a handy feature that allows you to save images for web use. It allows you to save images as JPGs, GIFs, and PNGs. It also allows you to resize your image before saving it. Some time ago I noticed that some of my images had a thin white border around them. I [...]]]></description>
			<content:encoded><![CDATA[<p> <img src="http://blog.dansnetwork.com/images/wborder02.jpg" alt="White Border" height="190" width="350" /></p>
<p>Photoshop has a handy feature that allows you to save images for web use. It allows you to save images as JPGs, GIFs, and PNGs. It also allows you to resize your image before saving it. Some time ago I noticed that some of my images had a thin white border around them. I believe this to be a result of image resizing. After some trial and error, I found a couple of ways to fix this problem.</p>
<p><u>Before you "Save For Web"</u></p>
<p>1. Try to resize your image first:  <strong>Image -&gt; Image Size...</strong></p>
<p>2.  Try to "Flatten" your layers first: <strong>Layer -&gt; Flatten Image</strong></p>
<p>If all else fails open your file, after you've Saved For Web, and paint around the edges with the same color as your background. Once you're done painting just: <strong>File -&gt; Save</strong></p>
<p><img src="http://blog.dansnetwork.com/images/wborder01.jpg" alt="No Border" height="190" width="350" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dansnetwork.com/save-for-webs-mysterious-white-border/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smooth Fonts in Photoshop</title>
		<link>http://dansnetwork.com/smooth-fonts-in-photoshop/</link>
		<comments>http://dansnetwork.com/smooth-fonts-in-photoshop/#comments</comments>
		<pubDate>Tue, 11 Dec 2007 02:17:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://blog.dansnetwork.com/2007/12/10/smooth-fonts-in-photoshop/</guid>
		<description><![CDATA[When working with text in Photoshop, I've come across situations where my text/fonts turn out to be rough or jagged.

I've seen websites where designers have used images like the one above and may not have known that there is a very simple fix: When the "Type Tool (T)" is selected there is an anti-aliasing drop-down [...]]]></description>
			<content:encoded><![CDATA[<p>When working with text in Photoshop, I've come across situations where my text/fonts turn out to be rough or jagged.</p>
<p><img src="http://static.dansnetwork.com/img/roughfont.jpg" alt="Rough Font" border="0" height="80" width="400" /></p>
<p>I've seen websites where designers have used images like the one above and may not have known that there is a very simple fix: When the "<strong>Type Tool (T)</strong>" is selected there is an <strong>anti-aliasing</strong> drop-down menu in the toolbar at the top of the screen. The selected option, to produce the text above, was "<strong>None</strong>". This is the default anti-aliasing method.</p>
<p><img src="http://static.dansnetwork.com/img/roughshop.jpg" alt="Font Setting" border="0" height="62" width="417" /></p>
<p>If you change this to "<strong>Smooth</strong>" or possibly any of the other options, you will get a much smoother font.</p>
<p><img src="http://static.dansnetwork.com/img/smoothshop.jpg" alt="Smooth Selection" border="0" height="80" width="414" /></p>
<p>. . . and here's the final result</p>
<p><img src="http://static.dansnetwork.com/img/smoothfont.jpg" alt="Smooth Font" border="0" height="80" width="400" /></p>
<p>I've tried to search for this solution before and didn't have much luck. That's why I'm sharing this with everyone!</p>
]]></content:encoded>
			<wfw:commentRss>http://dansnetwork.com/smooth-fonts-in-photoshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transparent Favicons Made Easy</title>
		<link>http://dansnetwork.com/favicons-made-easy/</link>
		<comments>http://dansnetwork.com/favicons-made-easy/#comments</comments>
		<pubDate>Sun, 18 Nov 2007 03:43:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://blog.dansnetwork.com/2007/11/17/favicons-made-easy/</guid>
		<description><![CDATA[I've had bad luck in the past with mediocre online favicon generators. They did a horrible job of resizing my file. I know that 16px by 16px doesn't give you much to work with. The worst feature, or lack of, was proper transparency.
Recently I came across a favicon generator that, I thought, performed very well. [...]]]></description>
			<content:encoded><![CDATA[<p>I've had bad luck in the past with mediocre online favicon generators. They did a horrible job of resizing my file. I know that 16px by 16px doesn't give you much to work with. The worst feature, or lack of, was proper transparency.</p>
<p>Recently I came across a favicon generator that, I thought, performed very well. You can give it a try for yourself at: <a href="http://tools.dynamicdrive.com/favicon/" title="Favicon Generator" target="_blank">http://tools.dynamicdrive.com/favicon/</a>   I made several example favicons from PNG files. You can see each of them below.<br />
In Photoshop I created a new file (File -&gt; New | 160 x 160 | Background: Transparent). Starting with an image at this size makes it a lot easier to work with your new icon. Once you're finished with your design, save your image "for web" (File -&gt; Save For Web). After you select this option, you'll want to change the "Preset" value to "PNG-24" before saving. Saving it as a PNG file will allow for transparency in your design (JPEG files do not support transparency).</p>
<p>Here are my (FREE) samples.<br />
<strong>Please feel free to use these for whatever you'd like!</strong></p>
<p><a href="http://blog.dansnetwork.com/images/favicon1.ico"><img src="http://blog.dansnetwork.com/images/favicon1.jpg" style="padding: 0pt 50px 70px 0pt" border="0" /></a><img src="http://blog.dansnetwork.com/images/favicon1.png" /></p>
<p><a href="http://blog.dansnetwork.com/images/favicon2.ico"><img src="http://blog.dansnetwork.com/images/favicon2.jpg" style="padding: 0pt 50px 70px 0pt" border="0" /></a><img src="http://blog.dansnetwork.com/images/favicon2.png" /></p>
<p><a href="http://blog.dansnetwork.com/images/favicon3.ico"><img src="http://blog.dansnetwork.com/images/favicon3.jpg" style="padding: 0pt 50px 70px 0pt" border="0" /></a><img src="http://blog.dansnetwork.com/images/favicon3.png" /></p>
<p><a href="http://blog.dansnetwork.com/images/favicon4.ico"><img src="http://blog.dansnetwork.com/images/favicon4.jpg" style="padding: 0pt 50px 70px 0pt" border="0" /></a><img src="http://blog.dansnetwork.com/images/favicon4.png" /></p>
<p><a href="http://blog.dansnetwork.com/images/favicon5.ico"><img src="http://blog.dansnetwork.com/images/favicon5.jpg" style="padding: 0pt 50px 70px 0pt" border="0" /></a><img src="http://blog.dansnetwork.com/images/favicon5.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dansnetwork.com/favicons-made-easy/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Simple Method For Producing Matching Colors</title>
		<link>http://dansnetwork.com/simple-method-for-producing-matching-colors/</link>
		<comments>http://dansnetwork.com/simple-method-for-producing-matching-colors/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 02:15:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://dansnetwork.com/blog/?p=5</guid>
		<description><![CDATA[When designing websites/pages, I've always needed a way to find colors that work well together. I came up with this simple method that lightens and darkens your base color to produce a nice color to use for borders or text. In this example, we will darken a base color to produce a matching border color [...]]]></description>
			<content:encoded><![CDATA[<p>When designing websites/pages, I've always needed a way to find colors that work well together. I came up with this simple method that lightens and darkens your base color to produce a nice color to use for borders or text. In this example, we will darken a base color to produce a matching border color (using Photoshop). To do this, we use either a light or dark background and then change our main image's/color "Fill".</p>
<p>1. Open Photoshop and create a new image (File -&gt; New) 400px x 400px with a white background.<br />
<img src="http://bp1.blogger.com/_I5kXNICcwyE/RxusI1DVetI/AAAAAAAAACU/kQmGa47SMPE/s400/tut01.jpg" alt="PS01" style="border: 1px solid #333333" border="0" /></p>
<p>2. Create a new layer (Layer -&gt; New -&gt; Layer). Use the Paint Bucket to paint the layer black.<br />
<img src="http://bp1.blogger.com/_I5kXNICcwyE/RxuuB1DVeuI/AAAAAAAAACc/HWbqRW6emnA/s400/tut02.jpg" alt="PS02" style="border: 1px solid #333333" border="0" /></p>
<p>3. Click on the "Layer Visibility" icon, for the black layer, so that it is hidden.<br />
<img src="http://bp2.blogger.com/_I5kXNICcwyE/Rxuu0FDVevI/AAAAAAAAACk/B-GeWa7t2vg/s400/tut03.jpg" alt="PS03" style="border: 1px solid #333333" border="0" /></p>
<p>4. Set your foreground color to #BFAC60. Use the "Rounded Rectangle Tool" to create the shape on your background.<br />
<img src="http://bp0.blogger.com/_I5kXNICcwyE/Rxuv_lDVewI/AAAAAAAAACs/cG_1MLEPgKI/s400/tut04.jpg" alt="PS04" style="border: 1px solid #333333" border="0" /></p>
<p>5. Next we'll bring our black layer back into view. It should appear directly behind our rounded rectangle.<br />
<img src="http://bp3.blogger.com/_I5kXNICcwyE/Rxuw5VDVexI/AAAAAAAAAC0/pzBkwgko06I/s400/tut05.jpg" alt="PS05" style="border: 1px solid #333333" border="0" /></p>
<p>6. Select your rectangle layer and change the "Fill" to 60%.<br />
<img src="http://bp0.blogger.com/_I5kXNICcwyE/RxuyHlDVeyI/AAAAAAAAAC8/Mg9mHrUe8cY/s400/tut06.jpg" alt="PS06" style="border: 1px solid #333333" border="0" /></p>
<p>7. Now we can add that border around our rectangle. Click on the "Add a layer style" icon to add a "Stroke". Click on "Color:" in the "Layer Style" window.<br />
<img src="http://bp0.blogger.com/_I5kXNICcwyE/RxuzrlDVezI/AAAAAAAAADE/tW3kyHnFPyY/s400/tut07.jpg" alt="PS07" style="border: 1px solid #333333" border="0" /></p>
<p>8. When the "Color Picker" comes into view, move the eyedropper over to our newly created color (our rectangle).<br />
<img src="http://bp1.blogger.com/_I5kXNICcwyE/Rxu0P1DVe0I/AAAAAAAAADM/uPuMl6OtdrY/s400/tut08.jpg" alt="PS08" style="border: 1px solid #333333" border="0" /></p>
<p>9. Hide our black layer again (as we did in step #3) and change our rectangle "Fill" back to 100%.<br />
<img src="http://bp1.blogger.com/_I5kXNICcwyE/Rxu0s1DVe1I/AAAAAAAAADU/0J9yKHklCb4/s400/tut09.jpg" alt="PS09" style="border: 1px solid #333333" border="0" /></p>
<p>10. Select "Background" to reveal our new image with matching border!<br />
<img src="http://bp3.blogger.com/_I5kXNICcwyE/Rxu1oVDVe2I/AAAAAAAAADc/ukrvkyOTAfo/s400/tut10.jpg" alt="PS08" style="border: 1px solid #333333" border="0" /></p>
<p>We can use this same method, but without using the black layer, to lighten our base color. You could then use this new color for text or highlighting effects.</p>
]]></content:encoded>
			<wfw:commentRss>http://dansnetwork.com/simple-method-for-producing-matching-colors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

