<?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>Sandbox Development and Consulting Inc. &#187; CSS</title>
	<atom:link href="http://www.sandboxdev.com/category/blog/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sandboxdev.com</link>
	<description>Building Solutions for Your Business Needs.</description>
	<lastBuildDate>Thu, 04 Mar 2010 16:44:01 +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>Remove Initial Flicker With Smooth Gallery</title>
		<link>http://www.sandboxdev.com/blog/406/remove-initial-flicker-with-smooth-gallery/</link>
		<comments>http://www.sandboxdev.com/blog/406/remove-initial-flicker-with-smooth-gallery/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 01:51:50 +0000</pubDate>
		<dc:creator>jzelazny</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HOWTOs]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[SDAC Blog]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Smooth Gallery]]></category>

		<guid isPermaLink="false">http://www.sandboxdev.com/?p=406</guid>
		<description><![CDATA[<img src="http://www.sandboxdev.com/wordpress/wp-content/uploads/icons/w3c-small.gif" width="38" height="25" alt="" title="CSS" /><br/>I recently created a site (in beta testing now) with Smooth Gallery and the client loved it.  
The Problem:
The only issue was that upon the initial page load - all items in the gallery would flicker for a second or two while the first image loaded - causing this to not look professional at [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.sandboxdev.com/wordpress/wp-content/uploads/icons/w3c-small.gif" width="38" height="25" alt="" title="CSS" /><br/><p>I recently created a site (in beta testing now) with <a href="http://smoothgallery.jondesign.net/what/">Smooth Gallery</a> and the client loved it.  </p>
<p><strong>The Problem:</strong><br />
The only issue was that upon the initial page load - all items in the gallery would flicker for a second or two while the first image loaded - causing this to not look professional at all. </p>
<p><strong>The Solution:</strong></p>
<ol>
<li><strong>HTML:</strong> I took the example code:
<div class="igBar"><span id="lphp-3"><a href="#" onclick="javascript:showPlainTxt('php-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-3">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div id=<span style="color:#FF0000;">"myGallery"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#0000FF;">$featured_posts</span> = get_posts<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'numberposts=5&amp;order=DES&amp;orderby=date&amp;category=1'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$i</span> = <span style="color:#CC66CC;color:#800000;">0</span>;foreach<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$featured_posts</span> <span style="color:#616100;">as</span> <span style="color:#0000FF;">$post</span> <span style="color:#006600; font-weight:bold;">&#41;</span>: </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">setup_postdata<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$post</span><span style="color:#006600; font-weight:bold;">&#41;</span>;&nbsp; <span style="color:#0000FF;">$i</span>++;?&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;&lt;div <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"imageElement"</span> id=<span style="color:#FF0000;">"element&lt;?php echo $i;?&gt;"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &lt;h3&gt;Item <span style="color:#CC66CC;color:#800000;">1</span> Title&lt;/h3&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &lt;p&gt;Item <span style="color:#CC66CC;color:#800000;">1</span> Description&lt;/p&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &lt;a href=<span style="color:#FF0000;">"#"</span> title=<span style="color:#FF0000;">"open image"</span> <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"open"</span>&gt;&lt;/a&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &lt;img src=<span style="color:#FF0000;">"images/brugges2006/1.jpg"</span> <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"full"</span> /&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &lt;img src=<span style="color:#FF0000;">"images/brugges2006/1-mini.jpg"</span> <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"thumbnail"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;&lt;/div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color:#000000; font-weight:bold;">&lt;?php</span> endforeach; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&lt;/div&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
I then added an ID to each div (id="element1") so that each div had a class of "imageElement" and a unique ID (element1, element2, etc).
</li>
<li><strong>CSS:</strong> Now that I had IDs to style, I added the following to my style sheet:
<div class="igBar"><span id="lcss-4"><a href="#" onclick="javascript:showPlainTxt('css-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-4">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#element2 <span style="color: #66cc66;">&#123;</span></span>display: <span style="color: #993333;">none</span>;<span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<li>
</ol>
<p>By adding the 2 bits of code mentioned below, I was able to initially hide the content in the second div so that only the content in the first div appeared on page load.  Once the script started running, it then changed the display from none to block automatically.  Problem solved.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sandboxdev.com/blog/406/remove-initial-flicker-with-smooth-gallery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ShareThis Button Cut Off Fix</title>
		<link>http://www.sandboxdev.com/blog/css/297/sharethis-button-cut-off-fix/</link>
		<comments>http://www.sandboxdev.com/blog/css/297/sharethis-button-cut-off-fix/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 15:11:06 +0000</pubDate>
		<dc:creator>jzelazny</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HOWTOs]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[quick tip]]></category>
		<category><![CDATA[ShareThis]]></category>

		<guid isPermaLink="false">http://www.sandboxdev.com/?p=297</guid>
		<description><![CDATA[<img src="http://www.sandboxdev.com/wordpress/wp-content/uploads/icons/w3c-small.gif" width="38" height="25" alt="" title="CSS" /><br/>I have seen a lot of sites using the ShareThis button (including a few of mine) where the button in Safari was getting cut off (clipped) at the bottom.  If this is happening to you - there is a quickfix.  Add this line of CSS to your stylesheet and your button will no [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.sandboxdev.com/wordpress/wp-content/uploads/icons/w3c-small.gif" width="38" height="25" alt="" title="CSS" /><br/><p>I have seen a lot of sites using the <a href="http://sharethis.com/">ShareThis</a> button (including a few of mine) where the button in Safari was getting cut off (clipped) at the bottom.  If this is happening to you - there is a quickfix.  Add this line of CSS to your stylesheet and your button will no longer be cut off.</p>
<div class="igBar"><span id="lcss-6"><a href="#" onclick="javascript:showPlainTxt('css-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-6">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.stbutton </span><span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">display</span>:<span style="color: #993333;">block</span>;height:16px;<span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sandboxdev.com/blog/css/297/sharethis-button-cut-off-fix/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SDAC Recommends: WP Plugin: Top Level Categories</title>
		<link>http://www.sandboxdev.com/blog/wordpress/165/sdac-recommends-wp-plugin-top-level-categories/</link>
		<comments>http://www.sandboxdev.com/blog/wordpress/165/sdac-recommends-wp-plugin-top-level-categories/#comments</comments>
		<pubDate>Mon, 12 Nov 2007 04:31:05 +0000</pubDate>
		<dc:creator>jzelazny</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[SDAC-Recommends]]></category>

		<guid isPermaLink="false">http://www.sandboxdev.com/blog/2007/11/11/sdac-recommends-wp-plugin-top-level-categories.php</guid>
		<description><![CDATA[<img src="http://www.sandboxdev.com/wordpress/wp-content/uploads/icons/w3c-small.gif" width="38" height="25" alt="" title="CSS" /><br/>If you have ever wondered how to clean up WordPress URLs by removing the /category/ from your URLs, check out the plugin: Top Level Categories.  After you activate it, you can access your web pages that were once only reachable by: /category/web-design/ by now using just /web-design/.  
]]></description>
			<content:encoded><![CDATA[<img src="http://www.sandboxdev.com/wordpress/wp-content/uploads/icons/w3c-small.gif" width="38" height="25" alt="" title="CSS" /><br/><p>If you have ever wondered how to clean up WordPress URLs by removing the /category/ from your URLs, check out the plugin: <a href="http://fortes.com/projects/wordpress/top-level-cats/">Top Level Categories</a>.  After you activate it, you can access your web pages that were once only reachable by: /category/web-design/ by now using just /web-design/.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sandboxdev.com/blog/wordpress/165/sdac-recommends-wp-plugin-top-level-categories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Highlighted Navigation with WordPress</title>
		<link>http://www.sandboxdev.com/blog/wordpress/108/highlighted-navigation-with-wordpress/</link>
		<comments>http://www.sandboxdev.com/blog/wordpress/108/highlighted-navigation-with-wordpress/#comments</comments>
		<pubDate>Tue, 17 Jul 2007 20:20:28 +0000</pubDate>
		<dc:creator>jzelazny</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HOWTOs]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Logic]]></category>

		<guid isPermaLink="false">http://www.sandboxdev.com/wordpress/2007/07/17/highlighted-navigation-with-wordpress.php</guid>
		<description><![CDATA[<img src="http://www.sandboxdev.com/wordpress/wp-content/uploads/icons/w3c-small.gif" width="38" height="25" alt="" title="CSS" /><br/>Ever wonder how to automatically highlight your tabs or navigation depending on the category, page, or post you are on?  Wonder no more!  To make this work, there are three bits of code you will need: 

The header code to control the body ID (and to tell us what page we are on)
The [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.sandboxdev.com/wordpress/wp-content/uploads/icons/w3c-small.gif" width="38" height="25" alt="" title="CSS" /><br/><p>Ever wonder how to automatically highlight your tabs or navigation depending on the category, page, or post you are on?  Wonder no more!  To make this work, there are three bits of code you will need: </p>
<ul>
<li>The header code to control the body ID (and to tell us what page we are on)</li>
<li>The navigation code</li>
<li>The CSS to control the highlight</li>
</ul>
<p>For this example, I will use this web site as an example.</p>
<p><strong>The header code</strong></p>
<div class="igBar"><span id="lphp-10"><a href="#" onclick="javascript:showPlainTxt('php-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-10">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$current_page</span> = <span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">ID</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$parent</span> = <span style="color:#CC66CC;color:#800000;">1</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">while</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$parent</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$page_query</span> = <span style="color:#0000FF;">$wpdb</span>-&gt;<span style="color:#006600;">get_row</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"SELECT post_name, post_parent FROM $wpdb-&gt;posts WHERE ID = '$current_page'"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$parent</span> = <span style="color:#0000FF;">$current_page</span> = <span style="color:#0000FF;">$page_query</span>-&gt;<span style="color:#006600;">post_parent</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>!<span style="color:#0000FF;">$parent</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$parent_name</span> = <span style="color:#0000FF;">$page_query</span>-&gt;<span style="color:#006600;">post_name</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;body id=<span style="color:#FF0000;">"&lt;?php echo (is_page()) ? "</span><span style="color:#0000FF;">$parent_name</span><span style="color:#FF0000;">" : ((is_home()) ? "</span>blog<span style="color:#FF0000;">" : ((is_search()) ? "</span>other<span style="color:#FF0000;">" : ((is_single()) ? "</span>blog<span style="color:#FF0000;">" : "</span>blog<span style="color:#FF0000;">"))); ?&gt;"</span>&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>The XHTML code (navigation)</strong></p>
<div class="igBar"><span id="lhtml-11"><a href="#" onclick="javascript:showPlainTxt('html-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-11">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"tabs"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"nav-home"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"/index.php"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Home<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"nav-blog"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"/blog/"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>SDAC Blog<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"nav-websolutions"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"/web_solutions/"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Web Solutions<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"nav-networksolutions"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"/network_solutions/"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Network Solutions<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"nav-userinterfacesolutions"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"/user_interface_solutions/"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>User Interface Solutions<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"nav-customsolutions"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"/custom_solutions/"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Custom Solutions<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"nav-search"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"/search/"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Search<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>The CSS code</strong></p>
<div class="igBar"><span id="lcss-12"><a href="#" onclick="javascript:showPlainTxt('css-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-12">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#home #nav-home, #about_us #nav-home, #contactus #nav-home, #faqs #nav-home, </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#disclaimer #nav-home, #search #nav-search, </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#blog #nav-blog, #web_solutions #nav-websolutions, #network_solutions #nav-networksolutions, </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#user_interface_solutions #nav-userinterfacesolutions, </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#custom_solutions #nav-customsolutions, #tos #nav-home, #sitemap <span style="color: #cc00cc;">#nav-home <span style="color: #66cc66;">&#123;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background</span>:<span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"images/tabs/active_tab_bg.gif"</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">repeat-x</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; border-right<span style="color: #3333ff;">:1px </span>solid #676e78;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#tabs li:hover, #tabs li<span style="color: #3333ff;">:hover </span>a <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"images/tabs/active_tab_bg.gif"</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">repeat-x</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">color</span>:#212933;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>General information</strong><br />
When you view the code for a page, you will notice that the header code will find out if the page viewed is infact a page.  If it is a page, it gets the page parent (I use parent and child pages in my web site organization).  The tabs are created with unique li IDs.  So that a combination of #home (the body ID) and the #nav-home (li ID) will show as a highlighted tab.  With this example, this case will only occur when we are on the home page because #home is a page (the home page) so the home tab will be highlighted.  When we click on "SDAC Blog", the body ID will then be #blog, so now the #blog #nav-blog combination will force the "SDAC Blog" tab to be highlighted.  Take a look at the CSS to see where to define the "cases".</p>
<p>Hopefully this took some of the mystery out of working with WordPress, navigation, and how to put everything together.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sandboxdev.com/blog/wordpress/108/highlighted-navigation-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Good CSS Practices</title>
		<link>http://www.sandboxdev.com/blog/css/65/good-css-practices/</link>
		<comments>http://www.sandboxdev.com/blog/css/65/good-css-practices/#comments</comments>
		<pubDate>Thu, 16 Nov 2006 03:39:02 +0000</pubDate>
		<dc:creator>jzelazny</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.sdacinc.com/blog/2006/11/15/good-css-practices.php</guid>
		<description><![CDATA[<img src="http://www.sandboxdev.com/wordpress/wp-content/uploads/icons/w3c-small.gif" width="38" height="25" alt="" title="CSS" /><br/>I was recently asked to recommend and comment on some good CSS practices for a client and I thought I would pass some of them.

Use a table of contents. I always start my stylesheet(s) with a table of contents so I can easily locate particular styles in the future.  I would recommend breaking your [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.sandboxdev.com/wordpress/wp-content/uploads/icons/w3c-small.gif" width="38" height="25" alt="" title="CSS" /><br/><p>I was recently asked to recommend and comment on some good CSS practices for a client and I thought I would pass some of them.</p>
<ul>
<li><b>Use a table of contents.</b> I always start my stylesheet(s) with a table of contents so I can easily locate particular styles in the future.  I would recommend breaking your stylesheet into a few main areas like: header, main content, navigation, footer. The more sections you put in, the easier it is to read and edit at a later date.</li>
<li><b>Use a table of contents.</b> If you notice your stylesheet is getting out of control (over 1,000 lines) consider using multiple style sheets.  You could have one master style sheet, another for forms, another for specific pages, etc.  You would then  either link to a stylesheet that would have links to all the styleheets using <code>@import</code> or you could call in the stylesheets on a page by page basis statically or dynamically.</li>
<li><b>Start with a known, debugged code if possible.</b> I have a library of layouts that I use when beginning a new project that I know work in multiple platforms on multiple browsers.  I will be publishing these as soon as I have some free time.</li>
<li><b>Do not rely on CSS hacks, unless it is a last resort.</b>  Believe it or not, most things can be done with CSS code that will validate.  As soon as you rely on hacks, your code becomes unpredictable with new browser releases.  Stick to valid code that you know will work with past and future builds of browsers.  There are a lot of hacks out there which seem like a quick and easy fix, but you will pay for it down the road.</li>
</ul>
<p>I hope this helps!  CSS is a little tricky and sometimes very frustrating, but in the end...clean code is very rewarding.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sandboxdev.com/blog/css/65/good-css-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
