<?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>Tricklin &#187; CSS</title>
	<atom:link href="http://www.patmullin.com/weblog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.patmullin.com/weblog</link>
	<description></description>
	<lastBuildDate>Tue, 11 May 2010 15:13:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Two More for the Portfolio</title>
		<link>http://www.patmullin.com/weblog/2008/11/13/two-more-for-the-portfolio/</link>
		<comments>http://www.patmullin.com/weblog/2008/11/13/two-more-for-the-portfolio/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 18:03:48 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[What am I]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[freelance]]></category>
		<category><![CDATA[kjvandfamily.com]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[villageofsecor.com]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.patmullin.com/weblog/?p=201</guid>
		<description><![CDATA[I've added a couple more sites to my portfolio. I enjoyed developing each of these sites, as neither of them took much of my time. You will more than likely recognize this first site, kjvandfamily.com, as I used the same WordPress template, with a few minor modifications. I really enjoyed creating the second site, villageofsecor.com, [...]]]></description>
			<content:encoded><![CDATA[<p>I've added a couple more sites to my portfolio. I enjoyed
developing each of these sites, as neither of them took much
of my time. </p>
<p>You will more than likely <a
href="http://everythingavery.com">recognize</a> this first
site, <a
href="http://kjvandfamily.com">kjvandfamily.com</a>, as I
used the same WordPress template, with a few minor
modifications.</p>
<p><a
href="http://www.patmullin.com/weblog/wp-content/uploads/200
8/11/kjvandfamily-screenshot.png"><img
src="http://www.patmullin.com/weblog/wp-content/uploads/2008
/11/kjvandfamily-screenshot-300x291.png"
alt="kjvandfamily.com screenshot"
title="kjvandfamily-screenshot" width="300" height="291"
class="aligncenter size-medium wp-image-202" /></a></p>
<p><span id="more-201"></span></p>
<p>I really enjoyed creating the second site, <a
href="http://villageofsecor.com">villageofsecor.com</a>, as
it is entirely managed via WordPress. This is the first time
I've used WordPress to manage an entire site.  Doing it this
way makes me want to make this site managed entirely in
WordPress.  But that will have to wait.  As my free time is
at a premium these days.</p>
<p><a
href="http://www.patmullin.com/weblog/wp-content/uploads/200
8/11/villageofsecor-screenshot.png"><img
src="http://www.patmullin.com/weblog/wp-content/uploads/2008
/11/villageofsecor-screenshot-282x300.png"
alt="villageofsecor.com screenshot"
title="villageofsecor-screenshot" width="282" height="300"
class="aligncenter size-medium wp-image-203" /></a></p>
<p>With this site, I had my client pick a <a
href="http://wordpress.org/extend/themes/">template from
WordPress.org</a>. Once picked, I then modified it slightly
to work better with the theme of the site.</p>
<p>Since I had the themes for both sites nearly built for
me, I was able to develop them in a short period of time,
and get them rolled out quickly.  I must say, when looking
at the time spent on each, I'm very happy with how they
turned out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patmullin.com/weblog/2008/11/13/two-more-for-the-portfolio/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Everything Avery</title>
		<link>http://www.patmullin.com/weblog/2008/02/24/everything-avery/</link>
		<comments>http://www.patmullin.com/weblog/2008/02/24/everything-avery/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 01:27:16 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[What am I]]></category>

		<guid isPermaLink="false">http://www.patmullin.com/weblog/2008/02/24/everything-avery/</guid>
		<description><![CDATA[My wife and I are at the age where our friends are having kids. So to keep friends and family updated on their kids daily activities, a majority of them maintain their own blogs. Well, as I mentioned before, Quinn (my wife) and I are expecting. That means that we need a blog to keep [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://everythingavery.com' title='Everything
Avery Screenshot'><img
src='http://www.patmullin.com/weblog/wp-content/uploads/2008
/02/everything_avery-thumb.png' alt='Everything Avery
Screenshot' class="floatright" /></a>My wife and I are at
the age where our friends are having kids.  So to keep
friends and family updated on their kids daily activities, a
majority of them maintain their own blogs.  Well, <a
href="http://www.patmullin.com/weblog/2008/02/06/something-w
orth-writing-about/">as I mentioned before</a>, Quinn (my
wife) and I are expecting.  That means that we need a blog
to keep our friends and family updated.  So, I asked Quinn
to come up with some ideas for what she wanted our site to
look like.  She gave me some great ideas, and I put together
a home page mockup in PhotoShop.  When we decided on the
final design, I began working on the CSS and HTML.  The CMS
I decided to go with is <a
href="http://wordpress.org/">WordPress</a>.  It's pretty
simple to use, and I love the functionality it provides, and
the freedom you have to incorporate it into any design.  The
fact that it's free, and very simple to install, made for an
easy decision as well.  In all, I was able to purchase a
domain, setup hosting, and complete the design, CSS and HTML
in about 48 hours.  I must say that I'm very happy with <a
href="http://everythingavery.com">how it turned out</a>, and
equally as excited that my wife has now joined the
blogosphere.  So, have a look around, and enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patmullin.com/weblog/2008/02/24/everything-avery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Awesome Tables With Very Little Markup</title>
		<link>http://www.patmullin.com/weblog/2008/02/11/awesome-tables-with-very-little-markup/</link>
		<comments>http://www.patmullin.com/weblog/2008/02/11/awesome-tables-with-very-little-markup/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 01:46:48 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.patmullin.com/weblog/2008/02/11/awesome-tables-with-very-little-markup/</guid>
		<description><![CDATA[Creating nice looking tables in HTML can be quite annoying. You have to give the table an ID or class, then give each row a class or give each column a class. Then you have to add some crazy code to make each row alternate color and another set of crazy javascript to make the [...]]]></description>
			<content:encoded><![CDATA[<p>Creating nice looking tables in HTML can be quite
annoying.  You have to give the table an ID or class, then
give each row a class or give each column a class.  Then you
have to add some crazy code to make each row alternate color
and another set of crazy javascript to make the rows
highlight when you mouse over them.  Well...  That is no
longer the case.  Below is an example of how to get nice
looking HTML tables with very little code or markup.</p>
<p><strong>Use Tables For Tables Only!</strong><br />
First things first, if your page is using tables for layout,
then stop reading.  This solution is for people who only use
tables for their intended purpose.  So, make sure you are
using tables correctly before continuing on.</p>
<p><strong>The Table Markup</strong><br />
The actual XHTML code for the tables themselves is extremely
simple, and because of this is, it is nice and legible.<br
/>
<span id="more-109"></span></p>
<pre class="brush: html">
&lt;table&gt;
    &lt;thead&gt;
        &lt;tr&gt;
            &lt;th&gt;Column Head&lt;/th&gt;
        &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;Column Value&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
</pre>
<p><strong>Give It a Little Style</strong><br />
Now that you have the HTML down, it's time to give this
table it's looks.</p>
<pre class="brush: css">
table {
    border-collapse: collapse; /* removes unwanted
cellspacing garbage */
    border-top: 1px solid #999;
    border-left: 1px solid #999;
    margin-bottom: 20px;
}

table thead {
    background: #ccc;
	text-transform: uppercase;
}

table thead th {
    border-bottom: 2px solid #333;
}

table thead th, table tbody td {
    padding: 5px 10px;
    border-right: 1px solid #999;
}

table tbody td {
    border-bottom: 1px solid #999;
}
</pre>
<p>Here's what you get:<br />
<img
src="http://www.patmullin.com/weblog/wp-content/uploads/2008
/02/screen-capture.png" alt="Table with no row colors"
/></p>
<p>Looks nice, eh?  We're not done yet.  Now we want to make
each row alternate color and make each row change to a
different color when you mouse over it.  To do this, we need
a little JavaScript.</p>
<pre class="brush: javascript">
function niceTables(evenclass,oddclass,hiliteclass) {
    if(document.getElementsByTagName(&#039;table&#039;)) {
		var tables =
document.getElementsByTagName(&#039;table&#039;);
		for (var nn = 0; nn &lt; tables.length; nn++) {
		  var rows = tables[nn].tBodies[0].rows;
            for(var ii = 0; ii &lt; rows.length; ii++) {
		    	var row = rows[ii];
		    	row.onmouseover = function () {
                        this.className=hiliteclass;
                    };
		    	if(ii % 2) {
		    		row.className = evenclass;
		    		row.onmouseout = function () {
		    		        this.className=evenclass;
		    		    };
		    	} else {
		    		row.className = oddclass;
		    		row.onmouseout = function () {
		    		        this.className=oddclass;
		    		    };
		    	}
		    }
		}
	}
}
</pre>
<p>This will set the class of all rows that are divisible by
2 to the variable <code>evenclass</code> and all other rows
to the variable <code>oddclass</code>.  It will also set a
mouse over event on the row and when moused over change the
class to the <code>hiliteclass</code>.  So this is great and
all, but how do I get this function to run?  Simple... We're
going to add an onload event to the window with javascript
like this:</p>
<pre class="brush: javascript">
window.onload=function(){
    niceTables(&#039;light&#039;, &#039;dark&#039;,
&#039;hilite&#039;);
}
</pre>
<p>So, if this javascript included in the <code>head</code>
of all your html files, then every table that exists in the
page will obtain this style when the page loads.  Notice
that calling this function set the <code>evenclass</code> to
'light', the <code>oddclass</code> to 'dark', and the
<code>hilite</code> class to 'hilite'.  What this means, is
that we have to add these classes to our stylesheet:</p>
<pre class="brush: css">
.light {
    background: #fff;
}

.dark {
    background: #DFEEFF;
}

.hilite {
    background: #9FCDFF;
}
</pre>
<p>...and you end up with:<br />
<img
src='http://www.patmullin.com/weblog/wp-content/uploads/2008
/02/screen-capture-1.png' alt='Tables with alternatiing row
colors' /></p>
<p>There you have it, nice, sleek looking tables with very
little markup.  <a
href="http://www.patmullin.com/awesome_tables.html">See it
in action</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patmullin.com/weblog/2008/02/11/awesome-tables-with-very-little-markup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Myspace Can Look Decent</title>
		<link>http://www.patmullin.com/weblog/2007/04/17/myspace-can-look-decent/</link>
		<comments>http://www.patmullin.com/weblog/2007/04/17/myspace-can-look-decent/#comments</comments>
		<pubDate>Tue, 17 Apr 2007 18:03:25 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[What am I]]></category>

		<guid isPermaLink="false">http://www.patmullin.com/weblog/2007/04/17/myspace-can-look-decent/</guid>
		<description><![CDATA[I know, I know.  I'll probably be crucified for even uttering the word myspace in here, but I wanted to write this to say that there is a way to make your myspace page look somewhat presentable, and I can prove it.  Making it look presentable is not without it's complications and limitations, however, the ability to do so exists.]]></description>
			<content:encoded><![CDATA[<p>I know, I know.  I'll probably be crucified for even
uttering the word "myspace" in here, but I wanted to write
this to say that there is a way to make your myspace page
look somewhat presentable, and I can prove it.  Making it
look presentable is not without it's complications and
limitations, however, the ability to do so exists.</p>
<p>Let me first start by saying, that I in no way came up
with the code necessary to do this.  All the hard work was
done by <a
href="http://www.mikeindustries.com/blog/about">Mike
Davidson</a> of <a
href="http://www.mikeindustries.com/">mikeindustries.com</a>
.  Mr. Davidson actually took the time to figure out how to
make the crappy back-end code of myspace work for you:</p>
<p><span id="more-92"></span></p>
<blockquote><p>Several weeks ago, I finally signed up for an
account, and within seconds I was instantly put-off by what
had been created for me: a hastily-designed â€œprofile
pageâ€ with uninspired colors, misaligned tables, and a
mish-mash of extraneous cruft and design elements which made
this feel more like a halfway house than a
â€œhomeâ€. Now, granted, I am a designer by trade
so my tolerance for this stuff is orders of magnitude lower
than most of the population, but clearly, this was not a
place I even felt comfortable having my name on.</p>
<p>So with the default home page this underwhelming, what is
a MySpacer to do? Customize, of course. One of
MySpaceâ€™s greatest features is its ability to let you
skin your own home page. Unfortunately, 99% of the
customizations Iâ€™ve seen are chalkboard-screechingly
awful, but what could a MySpace home page look like if some
actual design thought went into it? That is the question I
sought to answer. -- <a
href="http://www.mikeindustries.com/blog/archive/2006/04/hac
king-myspace-layouts">Mike Davidson</a></p></blockquote>
<p>So, if you are looking for this code, here is a link to
his awesome blog entry explaining all about it: "<a
href="http://www.mikeindustries.com/blog/archive/2006/04/hac
king-myspace-layouts">Hacking A More Tasteful
MySpace</a>.</p>
<p>So, armed with this code, I was able to create a few
decent looking pages:</p>
<ul>
<li><a href="http://www.myspace.com/174992903">My personal
myspace page</a><br /><a
href="http://www.myspace.com/174992903"><img
src="http://www.patmullin.com/images/screen_myspace_1.png"
alt="tricklin myspace" /></a></li>
<li><a href="http://www.myspace.com/quinnlovespatrick">My
wife's page</a><br /><a
href="http://www.myspace.com/quinnlovespatrick"><img
src="http://www.patmullin.com/images/screen_myspace_2.png"
alt="wife myspace" /></a></li>
<li><a href="http://www.myspace.com/fluffbunn">my brother
in-law's page</a><br /><a
href="http://www.myspace.com/fluffbunn"><img
src="http://www.patmullin.com/images/screen_myspace_3.png"
alt="brother in-law myspace" /></a></li>
<ul>
]]></content:encoded>
			<wfw:commentRss>http://www.patmullin.com/weblog/2007/04/17/myspace-can-look-decent/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Finishing Touches</title>
		<link>http://www.patmullin.com/weblog/2007/03/19/finishing-touches/</link>
		<comments>http://www.patmullin.com/weblog/2007/03/19/finishing-touches/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 01:59:16 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.patmullin.com/weblog/2007/03/19/finishing-touches/</guid>
		<description><![CDATA[I put the finishing touches on my new design this past weekend, and I'm pretty happy with the results. It still maintains that clean look, but I've added a bit of pop to it with the addition of the background, a few footer additions, some font fixes, and other miscellaneous modifications. The first thing I [...]]]></description>
			<content:encoded><![CDATA[<p>I put the finishing touches on my new design this past
weekend, and I'm pretty happy with the results. It still
maintains that clean look, but I've added a bit of pop to it
with the addition of the background, a few footer additions,
some font fixes, and other miscellaneous modifications. 
</p>
<p>The first thing I added was a new background, that fills
the left and right sides of the content with a bit of color.
 The beauty of this implementation, is that the diagonal
lines, are actually a repeating transparent PNG.  This
allows for me to <a
href="http://www.patmullin.com/weblog/2007/03/16/st-paddys-d
ay-green/">change the background color to anything I
please</a>.</p>
<p>Along with the new background change, I also decided to
keep a piece of the old design.  My wife commented that she
really like the image of the leaf cradling the droplet of
water, and I agree with her.  It's a nice image, and I feel
it has become a sort of staple of the site.  Because of
this, I decided to put right back where it was.  Because I'm
using transparent PNGs for this, the background color, and
the leaf don't appear for IE6 users, and I'm okay with this.
 I don't want to bend over backwards for a browser that
doesn't support transparent PNGs.</p>
<p><span id="more-83"></span>I also added a bit more to the
footer.  I feel that this adds a nice touch, that remains
consistent throughout the site.  So, from any page on the
site, the visitor always has the ability to my latest posts
and the most recent comments. </p>
<p>The comments on the site were a bit bland, so I spruced
them up with a background and a border, and reimplemented
the <a href="http://site.gravatar.com/">gravatar</a>.  I
really like the concept of the gravatar as it adds more
personality to the comment author, and helps provide
recognition if they've made more than 1 comment on the
site.</p>
<p>The last thing I did was make the logo, and the
navigation into images.  This guarantees that all visitors
will see the same thing.  Before, I was only using a font in
the style sheet, which meant that if a visitor didn't have
that font on their computer, then they wouldn't see it the
way I wanted them to.  Plus it provides for smoother looking
letters.</p>
<p>Overall, I really like the new look and feel.  It's much
less busy than the old site, but still has some nice
features.  Hopefully you'll enjoy it as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patmullin.com/weblog/2007/03/19/finishing-touches/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Design</title>
		<link>http://www.patmullin.com/weblog/2007/03/08/new-design/</link>
		<comments>http://www.patmullin.com/weblog/2007/03/08/new-design/#comments</comments>
		<pubDate>Thu, 08 Mar 2007 23:11:02 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.patmullin.com/weblog/2007/03/08/new-design/</guid>
		<description><![CDATA[I must admit, I was getting a little sick of the old design. It was starting to seem a little too busy to me. And if you look at this new design, you'll notice that I went in the extreme opposite direction. I initially created this design with a quick PhotoShop mock-up. Yes, it may [...]]]></description>
			<content:encoded><![CDATA[<p>I must admit, I was getting a little sick of the old
design.  It was starting to seem a little too busy to me. 
And if you look at this new design, you'll notice that I
went in the <em>extreme</em> opposite direction.  I
initially created this design with a quick PhotoShop
mock-up.  Yes, it may seem a bit ridiculous that I spent
time creating a mock-up of such a plain and simple design
such as this, but let me tell you: having a mock-up, makes
creating the XHTML/CSS code that much simpler.</p>
<p>So, I started on the WordPress CSS, and once I was
finished with that, I moved over to the CSS for the rest of
the site.  Once I was done, I then had to convert all of the
non-weblog files from ColdFusion to PHP, as the new hosting
company doesn't provide support for ColdFusion.   Converting
over to PHP, in my opinion, is a wise move.  It's always
better to have experience with open-source languages, as
they don't require expensive licenses to run.</p>
<p>I'm not 100% sure that this will be the final design, but
I think it's a great stepping stone for any future
enhancements.  In short, I wanted to make my site less busy.
 I wanted to try and make my site look nice and clean,
without a bunch of bells and whistles.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patmullin.com/weblog/2007/03/08/new-design/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IE7 Has Made Me A Busy Man</title>
		<link>http://www.patmullin.com/weblog/2006/11/09/ie7-has-made-me-a-busy-man/</link>
		<comments>http://www.patmullin.com/weblog/2006/11/09/ie7-has-made-me-a-busy-man/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 14:24:26 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.patmullin.com/weblog/?p=72</guid>
		<description><![CDATA[I realize that I haven't written anything in a rather long time. There are a few reasons for this, the main one being the release of IE7, and the fact that 70% of the pages of my company's online application would not appear correctly when using it. This wouldn't be too big of a deal [...]]]></description>
			<content:encoded><![CDATA[<p><img
src="http://www.patmullin.com/tricklin/images/ie7_thumb_logo
.gif" alt="ie7" class="floatleft">I realize that I haven't
written anything in a rather long time.  There are a few
reasons for this, the main one being the release of IE7, and
the fact that 70% of the pages of my company's online
application would not appear correctly when using it.  This
wouldn't be too big of a deal if Microsoft hadn't announced
that <a
href="http://blogs.msdn.com/ie/archive/2006/07/26/678149.asp
x">IE7 will be part of an automatic update</a>.  Because of
this, and the fact that an actual date was never stated, our
web development team spent countless hours modifying our
code on the pages that were having problems with IE7.  You
may be surprised to <strike>hear</strike> read this, but in
a way, I have been able to see this as a good thing.</p>
<p><strong>A Good Thing?  You Must Be Out Of Your
Mind!</strong><br />
Yeah, I know, spending 14 hours a day for the past 2 weeks
re-writing html pages just so they work in one browser
doesn't sound like "A Good Thing".  After all, the entire
application worked fine in Firefox, Opera, IE6, etc.  How
can I possibly say this is a good thing?  Well, let me start
off by saying that this application was originally created
in 1998, and about 4 years later, was revamped a bit, but as
far as a focus on well formed, standards compliant html code
goes, this never surfaced as a concern for us.   We created
the pages to work, with little concern about the format of
the code.  So, all pages used tables for formatting, and
would have failed a <a
href="http://validator.w3.org/">validation</a> test
miserably.</p>
<p><span id="more-72"></span></p>
<p>After testing our pages in IE7, and doing numerous things
to try and get the pages to display correctly to no avail,
we decided that the best course of action would be for us to
rewrite our pages with standards compliant xhtml/css code,
and get rid of tables altogether (only using them for their
intended purpose).  In a company of our size, with only 4
web developers, this change might never have happened (for
sure not this quickly).  But with the rollout of IE7, we
were basically strong-armed into doing so.  So, I sat down
with one other web developer, drew up the basic layouts of
our pages, wrote up a quick style sheet that would allow for
this, and created documentation that explained how to
implement this new solution.  Once this was done, the 4 of
us spent the next 2 weeks re-writing the pages that needed
the new treatment.  We are by no means done, as there are
many more files that need this treatment, however, we are
now on the right track to making our application standards
compliant, with well formed xthml/css code.  </p>
<p>There you have it...  The release of IE7, at least in
this case, is a good thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patmullin.com/weblog/2006/11/09/ie7-has-made-me-a-busy-man/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dictionary.com Redesign &#8211; By The Book</title>
		<link>http://www.patmullin.com/weblog/2006/08/26/dictionarycom-redesign-by-the-book/</link>
		<comments>http://www.patmullin.com/weblog/2006/08/26/dictionarycom-redesign-by-the-book/#comments</comments>
		<pubDate>Fri, 25 Aug 2006 18:39:36 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[IT Industry]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.patmullin.com/weblog/?p=66</guid>
		<description><![CDATA[They've changed things up a bit over at dictionary.com. It looks slick, clean, and more user friendly. Best of all they are using CSS for layout. Because of this, it seems to generate pages much quicker than before. I'll have to give my props to the designers over at happycog.com, the ones responsible for the [...]]]></description>
			<content:encoded><![CDATA[<p>They've changed things up a bit over at <a
href="http:/www.dictionary.com">dictionary.com</a>. </p>
<p><a href="http://www.dictionary.com"><img
src="http://www.patmullin.com/images/dictionary_screenshot.p
ng" alt="Screenshot of new layout of dictionary.com"
class="floatleft" /></a></p>
<p>It looks slick, clean, and more user friendly.  Best of
all they are using CSS for layout.  Because of this, it
seems to generate pages much quicker than before.  I'll have
to give my props to the designers over at <a
href="http://happycog.com/">happycog.com</a>, <a
href="http://www.lexico.com/about/pr20051115.html">the ones
responsible</a> for the new layout and redesign of <a
href="http://www.dictionary.com">dictionary.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patmullin.com/weblog/2006/08/26/dictionarycom-redesign-by-the-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alternating Row Colors Using Only JavaScript</title>
		<link>http://www.patmullin.com/weblog/2006/04/05/alternating-row-colors-using-only-javascript/</link>
		<comments>http://www.patmullin.com/weblog/2006/04/05/alternating-row-colors-using-only-javascript/#comments</comments>
		<pubDate>Wed, 05 Apr 2006 15:36:49 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.patmullin.com/weblog/?p=47</guid>
		<description><![CDATA[Below is a JavaScript that will make alternating the row colors of a table extremely simple. The beauty of it is that the script is only 16 lines long! function alternateRowColor(tableid,lightclass,darkclass,overclass) { &#160;&#160;&#160;&#160;var tableid = document.getElementById(tableid); &#160;&#160;&#160;&#160;var rows = tableid.tBodies[0].rows; &#160;&#160;&#160;&#160;for(var ii = 0; ii < rows.length; ii++) { &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var row = rows[ii]; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if(ii % [...]]]></description>
			<content:encoded><![CDATA[<p>Below is a JavaScript that will make alternating the row
colors of a table extremely simple.  The beauty of it is
that the script is only 16 lines long!</p>
<p class="blockcode">
function
alternateRowColor(tableid,lightclass,darkclass,overclass)
{<br />
	&nbsp;&nbsp;&nbsp;&nbsp;var tableid =
document.getElementById(tableid);<br />
	&nbsp;&nbsp;&nbsp;&nbsp;var rows =
tableid.tBodies[0].rows;<br />
	&nbsp;&nbsp;&nbsp;&nbsp;for(var ii = 0; ii < rows.length;
ii++) {<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var row =
rows[ii];<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(ii % 2)
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;row.className =
lightclass;	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;row.onmouseover = function ()
{overRow(this.id,overclass);};<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;row.onmouseout = function ()
{overRow(this.id,lightclass);};<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else
{<br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;row.className = darkclass;<br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;row.onmouseover = function ()
{overRow(this.id,overclass);};<br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;row.onmouseout = function ()
{overRow(this.id,darkclass);};<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
	&nbsp;&nbsp;&nbsp;&nbsp;}<br />
}
</p>
<p>I've added a nice little row highlighting function to the
mouseover and mouseout events called
<code><strong>overRow()</strong></code>.  This function only
adds 3 lines of code:</p>
<p class="blockcode">
function overRow(rowid, classname) {<br />
	&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(rowid).clas
sName = classname;<br />
}
</p>
<p>The last thing to do is make sure that the
<code><strong>alternateRowColor()</strong></code> function
gets invoked every time the page loads.  Instead of having
to place this in the <code>body</code> tag of all pages, all
that is needed is one line of code added to the same script
that will automatically run the function each time a page
loads:</p>
<p class="blockcode">
window.onload=function(){
alternateRowColor('alternateRows','light','dark','over');}
</p>
<p>That's all there is to it.  <a
href="http://www.patmullin.com/alternating_row_color_js.html
" title="Click here to see a demo of the alternating row
color javascript.">See it in action</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patmullin.com/weblog/2006/04/05/alternating-row-colors-using-only-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Site Breakdown: Part I &#8211; Header</title>
		<link>http://www.patmullin.com/weblog/2006/01/27/site-breakdown-part-i-header/</link>
		<comments>http://www.patmullin.com/weblog/2006/01/27/site-breakdown-part-i-header/#comments</comments>
		<pubDate>Thu, 26 Jan 2006 23:07:53 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.patmullin.com/weblog/?p=43</guid>
		<description><![CDATA[I spent a considerable amount of my free time on this site, and enjoyed every single second of it. Perhaps a little too much (ask my wife). Since I've spent so much time, and have learned a ton while doing so, I feel that it's only right, as a designer who utilized information from other [...]]]></description>
			<content:encoded><![CDATA[<p>I spent a considerable amount of my free time on this
site, and enjoyed every single second of it.  Perhaps a
little too much (ask my wife).  Since I've spent so much
time, and have learned a ton while doing so, I feel that
it's only right, as a designer who utilized information from
other blogs to create this one, to give a relatively
detailed breakdown of this site.  Since this will be
somewhat detailed, I've decided to break it down into
parts:</p>
<ul>
<li>Part I - Header</li>
<li>Part II - Body</li>
<li>Part III - Sidebar</li>
<li>Part IV - Footer</li>
<li>(links to the above list will be added as the entries
are written)</li>
</ul>
<p><span id="more-43"></span><br />
<strong>The Header</strong><br />
<a
href="http://www.patmullin.com/tricklin/images/tricklin_logo
_200x60.png"><img
src="http://www.patmullin.com/tricklin/images/tricklin_logo_
200x60.png" alt="Entire Tricklin Logo" class="floatright"
/></a>The masthead consists of the logo and the navigation. 
This may not seem like a whole lot, yet some really nice
<abbr title="Cascading Style Sheets">CSS</abbr> code is
utilized here, making for some really clean markup, and a
nice user experience.  We'll start with the logo.<br />
<strong>The Logo</strong><br />
The <a
href="http://www.patmullin.com/tricklin/images/tricklin_logo
_200x60.png" title="Click here to view the entire logo
image.">image</a> itself is actually part of the background.
 Notice, when looking at the <abbr title="eXtensible
HyperText Markup Language">XHTML</abbr>, there is no
reference to the logo image itself:</p>
<p class="blockcode">
&lt;div id="logo"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href="http://www.tricklin.com"
name="top"&gt;Tricklin&lt;/a&gt;<br />
&lt;/div&gt;
</p>
<p>The beauty of this is that the logo image is in the
background, declared in the <abbr title="Cascading Style
Sheets">CSS</abbr>.  To help clarify, let's take a look at
this code:</p>
<p class="blockcode">
#logo {<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin: 0 0 0 6px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;position:relative;<br />
&nbsp;&nbsp;&nbsp;&nbsp;float:left;<br />
&nbsp;&nbsp;&nbsp;&nbsp;width:200px;<br />
}<br />
#logo a {<br />
&nbsp;&nbsp;&nbsp;&nbsp;height:60px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;width:200px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;background:
url(http://www.patmullin.com/tricklin/images/tricklin_logo_2
00x60.png) no-repeat;<br />
&nbsp;&nbsp;&nbsp;&nbsp;text-indent: -9000px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;display:block;<br />
}<br />
#logo a:hover {<br />
&nbsp;&nbsp;&nbsp;&nbsp;background-position: 0 -60px;<br />
}
</p>
<p>The first section, <code>#logo</code>, acts as the
placeholder for the logo image.  By looking at this we know
that the logo will appear on the left of the screen, and a
margin of 6 pixels will keep it from butting directly up
against the left edge of the browser window.  We also know
that since the image is only 200 pixels in width, that is
the widest we need this section to be, so it is set to 200
pixels.</p>
<p>The remaining sections, <code>#logo a</code> and
<code>#logo a:hover</code>, are what declare the logo image,
and the properties that make it clickable.  We'll start with
the default link state.  First, <code>#logo a</code> means
that an anchor tag within the "<code>logo</code>" div will
aquire these properties.  Meaning all other anchor tags will
not be affected.  That said, the anchor tag inside
"<code>#logo</code>" will place the
"tricklin_logo_200x60.png" into the background and only show
it once (<code>no-repeat</code>).  If otherwise declared,
the starting point for showing the image is 0 pixels from
the left and 0 pixels from the top.  As you can see from the
actual logo image (above), it's actually 120 pixels in
height, yet the image will only appear in an available
window that is 60 pixels tall.  So the user will only see
the top-half of the logo image.  So that when the mouse is
"hovered (<code>#logo a:hover</code>)" over the logo, the
bottom half of the logo will appear in the available window
- <code>background-position:0 -60px</code>.</p>
<p><strong>Navigation Menu</strong><br />
Once again, the markup for the navigation is nice and clean.
 There are no image references in the actual <abbr
title="eXtensible HyperText Markup Language">XHTML</abbr>
code.  Let's have a look:</p>
<p class="blockcode">
&lt;div id="navigation"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class="nav"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&l
t;a href="http://www.patmullin.com/portfolio.cfm"
accesskey="1"
class="portfolio"&gt;&lt;span&gt;portfolio&lt;/span&gt;&lt;/
a&gt;&lt;/li&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&l
t;a href="http://www.patmullin.com/contact_me.cfm"
accesskey="2" class="contactme"&gt;&lt;span&gt;contact
me&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&l
t;a href="http://www.patmullin.com/about_me.cfm"
accesskey="3"
class="aboutme"&gt;&lt;span&gt;projects&lt;/span&gt;&lt;/a&g
t;&lt;/li&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&l
t;a href="http://weblog.patmullin.com" accesskey="4"
class="weblog_c"&gt;&lt;span&gt;journal&lt;/span&gt;&lt;/a&g
t;&lt;/li&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;<br />
&lt;/div&gt;
</p>
<p>Notice that each "button" has an <a
href="http://www.alistapart.com/articles/accesskeys/"
title="Click here to learn more about
accesskeys.">accesskey</a> associated to it.  These were
added to improve the accessibility of the site.  Since  <a
href="http://www.designmeme.com">Stuart Robertson</a> does
an excellent job explaining accesskeys in his <a
href="http://www.alistapart.com/articles/accesskeys/"
title="Click here to learn more about
accesskeys.">article</a> on <a
href="http://www.alistapart.com">A List Apart</a>, I won't
go into detail about this.  </p>
<p>With some <abbr title="Cascading Style Sheets">CSS</abbr>
coding, the navigation menu goes from looking like a
bulleted list to a horizontal set of buttons:</p>
<p class="blockcode">
#navigation ul.nav {<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding: 0px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin: 0px;<br />
}<br />
#navigation ul.nav li {<br />
&nbsp;&nbsp;&nbsp;&nbsp;display: inline;<br />
&nbsp;&nbsp;&nbsp;&nbsp;list-style-type: none;<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin: 0;<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding: 0;<br />
}<br />
#navigation ul.nav li a{<br />
&nbsp;&nbsp;&nbsp;&nbsp;float:left;<br />
&nbsp;&nbsp;&nbsp;&nbsp;display: block;<br />
&nbsp;&nbsp;&nbsp;&nbsp;list-style-type: none;<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin: 0px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding: 0;<br />
}
</p>
<p>Each button in the navigation menu has 3 states (using
only 1 image), a mouser over (<code>hover</code>), a mouse
out, and an active page state.  Each state is represented
using the same concept as with the logo:</p>
<p class="blockcode">
#navigation ul.nav li a.portfolio, #navigation ul.nav li
a.portfolio_c, #navigation ul.nav li a.portfolio:hover{<br
/>
&nbsp;&nbsp;&nbsp;&nbsp;width: 90px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;height: 30px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;background:
url(http://www.patmullin.com/images/portfolio_nav_tab2.png)
no-repeat;<br />
}<br />
#navigation ul.nav li a.portfolio{background-position:0
-50px;}  // mouse out state<br />
#navigation ul.nav li a.portfolio_c{background-position:0
-100px;}  // active page state<br />
#navigation ul.nav li
a.portfolio:hover{background-position:0 0;}  // mouse over
state
</p>
<p>So, that's the header in a nutshell.  Next, I'll explain
the Body, and all the little CSS elements and WordPress
plugins used.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patmullin.com/weblog/2006/01/27/site-breakdown-part-i-header/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
