<?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"
	>

<channel>
	<title>Pixel Perfect</title>
	<atom:link href="http://www.linneapetrillo.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linneapetrillo.com/blog</link>
	<description>Tidbits on Web Development</description>
	<pubDate>Wed, 13 May 2009 17:29:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>3 CSS issues I encounter with every layout</title>
		<link>http://www.linneapetrillo.com/blog/2009/05/3-css-issues-i-encounter-with-every-layout/</link>
		<comments>http://www.linneapetrillo.com/blog/2009/05/3-css-issues-i-encounter-with-every-layout/#comments</comments>
		<pubDate>Wed, 13 May 2009 17:27:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.linneapetrillo.com/blog/?p=78</guid>
		<description><![CDATA[Like many developers I&#8217;ve taken a PSD and created a website template from the image dozens of times.  And like many developers I&#8217;ve got a set of steps that I follow each time.  I also know that most developers have slightly different set of steps which is what inspired me to write how [...]]]></description>
			<content:encoded><![CDATA[<p>Like many developers I&#8217;ve taken a PSD and created a website template from the image dozens of times.  And like many developers I&#8217;ve got a set of steps that I follow each time.  I also know that most developers have slightly different set of steps which is what inspired me to write how I solve three pretty common CSS issues I encounter when I create a website template.  These aren&#8217;t original solutions, I&#8217;ve either read about them or been told about them by other developers.  But they&#8217;re in my toolkit and I use them consistently without even thinking about them.  To me they have become a part of how I write CSS and I realized after being asked a question about a CSS sheet I wrote that not everyone may have encountered them, especially those just starting out.</p>
<p>So here&#8217;s my top three (two are pretty standard and one is a little obscure).  I&#8217;m sure there are many more, feel free to add yours in the comments.<br />
<span id="more-78"></span></p>
<h3>ie whitespace bug</h3>
<p><strong>symptom: </strong>you&#8217;re making a list and have large amounts of padding between your list items.  This frequently occurs when you&#8217;re using a list for your navigation.</p>
<p><strong>solution:</strong> There are many documented solutions out there.  My first line of defense is to add display:inline to the &lt;li&gt;.  You can also just remove the spacing in your actual HTML code so that your list looks like so:</p>
<p><code>&lt;ul&gt;<br />
&lt;li&gt;&lt;a&gt;First Item&lt;/a&gt;&lt;/li&gt;&lt;li&gt;<br />
&lt;a&gt;Second Item&lt;/a&gt;&lt;/li><br />
&lt;/ul&gt;<br />
</code> </p>
<p>I don&#8217;t like this method simply because it makes things a little harder to read and can be accidently broken if you make an edit down the road and don&#8217;t forget to keep the spacing that way.  For this reason I tend to use display:inline whenever possible.</p>
<h3>ie double padding on floats</h3>
<p><strong>symptom:</strong> you&#8217;re building a layout and float an element and notice that the padding or margin is double the value you&#8217;ve typed.</p>
<p><strong>solution:</strong> add display:inline to your element. For this example I&#8217;m using a div with an id of &#8220;container&#8221;.  </p>
<p><code>css:<br />
 <br />
#container{<br />
&nbsp;&nbsp;&nbsp; float:left;<br />
&nbsp;&nbsp;&nbsp; margin:10px;<br />
}</code></p>
<p>A special note about this bug.  It only occurs if you have margin/padding on the same side your float is applied.  So if you&#8217;re floating left and have padding left you will encounter this issue but if you&#8217;re floating left and have padding on the right everything should render as you intended.</p>
<h3>button element in ie</h3>
<p>This is the obscure one. When I create a form I like to use the HTML &#038;lt button &gt; element for my submit buttons.  I tend to do this so I can style all my input elements (fields, checkboxes etc) one way and then have a unique submit button that I can style without overriding all my general input styles. </p>
<p>Anyway, I&#8217;m often asked to create graphical submit buttons.  In it&#8217;s most basic implementation (no rollover effect) I&#8217;ll save out an image and place it in the button like so.</p>
<p><code> &lt;button&gt;&lt;img src = "myButton.png"&gt;&lt;/button&gt; </code></p>
<p>Unfortunately good old ie has some very odd padding within the button element often making a light grey background and or border appear around the button.  The fix is simple and involves adding overflow: visible to the css on the button element.</p>
<p><code> button{ overflow: visible; } </code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linneapetrillo.com/blog/2009/05/3-css-issues-i-encounter-with-every-layout/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New for 2009</title>
		<link>http://www.linneapetrillo.com/blog/2009/03/new-for-2009/</link>
		<comments>http://www.linneapetrillo.com/blog/2009/03/new-for-2009/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 04:40:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Ramblings]]></category>

		<category><![CDATA[CS4]]></category>

		<category><![CDATA[CSS Tables]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Gaia]]></category>

		<category><![CDATA[IK]]></category>

		<guid isPermaLink="false">http://www.linneapetrillo.com/blog/?p=72</guid>
		<description><![CDATA[It&#8217;s now 3 months in to 2009 so this post isn&#8217;t quite as timely as I&#8217;d like it to be but I got my shiny new MacBook Pro 2 weeks ago and it inspired me to write about some of the new technologies I&#8217;m hoping to play around with this year.
Explore the Gaia Framework
 I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s now 3 months in to 2009 so this post isn&#8217;t quite as timely as I&#8217;d like it to be but I got my shiny new MacBook Pro 2 weeks ago and it inspired me to write about some of the new technologies I&#8217;m hoping to play around with this year.</p>
<p><strong><em>Explore the Gaia Framework<br />
</em> <span style="font-weight: normal;">I&#8217;ve never used a Flash framework, in fact this is the first one I&#8217;ve heard of.  When I build a Flash site my least favorite part is always sitting down and planning out the loading structure.  Where the data is coming from, when its going to load etc etc. It&#8217;s dull, repetitive and takes away from all the fun creative interface creation I enjoy so much BUT it&#8217;s very important to consider unless you want to have a crummy sluggish site.  In the past I&#8217;ve written my own loading classes and used existing classes (ie: BulkLoader) but after reading about Gaia I&#8217;m excited to see how they handle loading and other typical Flash site needs ie:transitions.  Oh, and bonus points because it plays nice with SWFAddress and TweenLite!  Two Flash classes I can&#8217;t live without. <img src='http://www.linneapetrillo.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </span></strong></p>
<p><strong><em>Take Flash IK for a Test Run<br />
</em> <span style="font-weight: normal;">One of the main reasons I upgraded my computer was so that I could run the new CS4 suite.  My old TIBook just couldn&#8217;t handle Adobe anymore.  Now that I have CS4 I&#8217;m looking forward to running through a few tutorials on IK and rigging a few objects/characters.</span></strong></p>
<p><strong><em>Make a Layout Using CSS Tables<br />
</em> <span style="font-weight: normal;">Now this probably won&#8217;t happen on any professional work just yet but I&#8217;ve put off working with CSS tables for awhile now.  In my 9-5 good old IE6+7 make up over 70% of our users in most cases so using CSS tables for &lt;30% of users doesn&#8217;t quite justify it for me just yet. </span></strong></p>
<p>Well there&#8217;s three of many new techniques/skills/tools I&#8217;m hoping to get familiar with this year.  I just hope I can find enough hours in the day for everything!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linneapetrillo.com/blog/2009/03/new-for-2009/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Don&#8217;t forget the wordWrap!</title>
		<link>http://www.linneapetrillo.com/blog/2009/01/dont-forget-the-wordwrap/</link>
		<comments>http://www.linneapetrillo.com/blog/2009/01/dont-forget-the-wordwrap/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 18:30:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flash]]></category>

		<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://www.linneapetrillo.com/blog/?p=65</guid>
		<description><![CDATA[Quick post time.  I was working in Flash today creating some text fields at run time and populating them with text.  I set the width, made it multiline and then dropped in the text using code similar to the snippet below.
var contents = new TextField();
contents.width = 300;
contents.multiline = true;
contents.text = myData;

Tested the movie [...]]]></description>
			<content:encoded><![CDATA[<p>Quick post time.  I was working in Flash today creating some text fields at run time and populating them with text.  I set the width, made it multiline and then dropped in the text using code similar to the snippet below.</p>
<p><code>var contents = new TextField();<br />
contents.width = 300;<br />
contents.multiline = true;<br />
contents.text = myData;<br />
</code></p>
<p>Tested the movie and shocker, the text was not multiline!  Confused I read the lines over and over again, changed the order in which I declared the multiline value and then it hit me, word wrap!  By default the wordWrap value in Flash is set to false, this forces all the text on one line no matter what the multiline says. By adding a simple wordWrap = true everything displayed as intended.  </p>
<p><code>var contents = new TextField();<br />
contents.width = 300;<br />
<strong style="color: rgb(72, 120, 14);">contents.wordWrap = true;</strong><br />
contents.multiline = true;<br />
contents.text = myData;<br />
</code></p>
<p>I&#8217;m not sure why I always forget the wordWrap but next time I do hopefully I remember I wrote this post!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linneapetrillo.com/blog/2009/01/dont-forget-the-wordwrap/feed/</wfw:commentRss>
		</item>
		<item>
		<title>IE7 Double Padding on Clearing DIVs</title>
		<link>http://www.linneapetrillo.com/blog/2008/11/ie7-double-padding-on-clearing-divs/</link>
		<comments>http://www.linneapetrillo.com/blog/2008/11/ie7-double-padding-on-clearing-divs/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 17:48:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[browser compatability]]></category>

		<guid isPermaLink="false">http://www.linneapetrillo.com/blog/?p=54</guid>
		<description><![CDATA[About a week or so ago I encountered a new CSS issue that only was present in IE7 that I was surprised I hadn&#8217;t run in to before. Actually I was more surprised to encounter an issue that was only present in IE7 and fine in IE6. Maybe its just me but those bugs seem few [...]]]></description>
			<content:encoded><![CDATA[<p>About a week or so ago I encountered a new CSS issue that only was present in IE7 that I was surprised I hadn&#8217;t run in to before. Actually I was more surprised to encounter an issue that was only present in IE7 and fine in IE6. Maybe its just me but those bugs seem few and far between.</p>
<p>I was doing a simple two column layout and using my footer to clear the two columns which were floated left. Easy enough.  The problem came in to play when I added some padding to the top of my footer which when displayed in IE7 was doubled.  Right away my mind jumped  to the <a href="http://www.positioniseverything.net/explorer/doubled-margin.html" target="_blank">well documented</a> double float margin bug present in IE6.  The solution to that one is to add &#8220;display:inline&#8221; to the float container and all is well.  Unfortunately that did not work in this case BUT a small adjustment to &#8220;display:inline-block&#8221; did the trick.</p>
<p><strong>Before:</strong><br />
<code><br />
#footer{<br />
&nbsp;&nbsp;clear:both;<br />
&nbsp;&nbsp;padding:15px 0;<br />
&nbsp;&nbsp;width:800px;<br />
}<br />
</code></p>
<p><strong>After:</strong><br />
<code><br />
#footerBox{<br />
&nbsp;&nbsp;clear:both;<br />
&nbsp;&nbsp;<strong style = "color:#48780E;">display:inline-block;</strong><br />
&nbsp;&nbsp;padding:15px 0;<br />
&nbsp;&nbsp;width:800px;<br />
}<br />
</code></p>
<p>When implementing the solution on actual site files I prefer to apply the &#8220;display:inline-block;&#8221; rule with conditional commenting. However having the rule in the main CSS does not appear to cause conflicts in any other browsers I test on (Safari, Firefox, IE6) so its a matter of personal preference.  Personally I strongly dislike IE and relegate all IE specific fixes etc to their own CSS that is included via conditional comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linneapetrillo.com/blog/2008/11/ie7-double-padding-on-clearing-divs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>I </title>
		<link>http://www.linneapetrillo.com/blog/2008/11/i/</link>
		<comments>http://www.linneapetrillo.com/blog/2008/11/i/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 22:05:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Web Dev]]></category>

		<category><![CDATA[plugins]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.linneapetrillo.com/blog/?p=49</guid>
		<description><![CDATA[I&#8217;m a big fan of WordPress and I just found my new favorite plugin, WPLite.  As much as I think WordPress is user friendly and very intuitive the non-techy user often seems to have trouble navigating the menus.
Enter WPLite.
This nifty plugin allows me to login and disable individual menu items as well as specific [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a big fan of WordPress and I just found my new favorite plugin, <a href="http://mahalkita.nanogeex.com/wplite/" target="_blank">WPLite</a>.  As much as I think WordPress is user friendly and very intuitive the non-techy user often seems to have trouble navigating the menus.</p>
<p><strong>Enter <a href="http://mahalkita.nanogeex.com/wplite/" target="_blank">WPLite</a></strong><strong>.</strong></p>
<p>This nifty plugin allows me to login and disable individual menu items as well as specific sections of the  post meta, ie: categories, tags or custom fields.  It even works with other plugins so you can hide the options/settings menu of a plugin but still allow access to the front end. I do this frequently with the Event Calendar plugin. If you&#8217;re looking for an easy way to strip down the WordPress admin area beyond what the predefined roles give you then this might be a lifesaver.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linneapetrillo.com/blog/2008/11/i/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Is Ruby the next big thing?</title>
		<link>http://www.linneapetrillo.com/blog/2008/11/is-ruby-the-next-big-thing/</link>
		<comments>http://www.linneapetrillo.com/blog/2008/11/is-ruby-the-next-big-thing/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 21:18:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Web Dev]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[python]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[trends]]></category>

		<guid isPermaLink="false">http://www.linneapetrillo.com/blog/?p=41</guid>
		<description><![CDATA[I&#8217;ll admit it, I thought the Ruby on Rails framework was going to be a fad that faded away within a year or two.  However it&#8217;s still here, and while I&#8217;m not sure I&#8217;ve warmed up to Rails i&#8217;ve gotten a little more curious with it&#8217;s big brother Ruby.  Now I have no [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll admit it, I thought the Ruby on Rails framework was going to be a fad that faded away within a year or two.  However it&#8217;s still here, and while I&#8217;m not sure I&#8217;ve warmed up to Rails i&#8217;ve gotten a little more curious with it&#8217;s big brother Ruby.  Now I have no hands on experience with Ruby it just seems as though its come up in conversation more recently that this time last year.  My headhunter friend has frequently asked if I know any Ruby programmers.</p>
<p>Just for fun I played around with Google Trends this afternoon to see if in fact people are searching for Ruby any more now than they were a year ago.  In an effort to ignore searches for &#8220;ruby&#8221; the gemstone versus Ruby the programming language I formatted searched for the phrase &#8220;ruby programming&#8221;.   I don&#8217;t claim these results really show an accurate gauge of programming language popularity (check link for that) but it was a fun experiment. I threw in PHP and Python for a comparison but left out the big guns ie:Java, it just didn&#8217;t seem fair to compare Java to Ruby.</p>
<div id="attachment_43" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.linneapetrillo.com/blog/wp-content/uploads/2008/11/picture-21.png"><img src="http://www.linneapetrillo.com/blog/wp-content/uploads/2008/11/picture-21.png" alt="Search Trends in the United States" title="picture-21" width="500" height="204" class="size-full wp-image-43" /></a><p class="wp-caption-text">Search Trends in the United States</p></div>
<div id="attachment_44" class="wp-caption alignnone" style="width: 510px"><a href="http://www.linneapetrillo.com/blog/wp-content/uploads/2008/11/picture-3.png"><img src="http://www.linneapetrillo.com/blog/wp-content/uploads/2008/11/picture-3.png" alt="Search Trends in the United States in 2008" title="picture-3" width="500" height="194" class="size-full wp-image-44" /></a><p class="wp-caption-text">Search Trends in the United States in 2008</p></div>
<div id="attachment_45" class="wp-caption alignnone" style="width: 510px"><a href="http://www.linneapetrillo.com/blog/wp-content/uploads/2008/11/picture-4.png"><img src="http://www.linneapetrillo.com/blog/wp-content/uploads/2008/11/picture-4.png" alt="" title="Search Trends Worldwide in 2008" width="500" height="205" class="aligncenter size-full wp-image-45" /></a><p class="wp-caption-text">Search Trends Worldwide in 2008</p></div>
<p>I&#8217;d describe the graphs as &#8220;slow and steady&#8221;, while there didn&#8217;t seem to be any notable influx of changes I found it interesting how close Ruby and PHP results appeared in the United States.  Event more surprising to me was that Python presented considerably higher search popularity than PHP in 2008.  Maybe I should have titled the article &#8220;Is Python the Next Big Thing?&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linneapetrillo.com/blog/2008/11/is-ruby-the-next-big-thing/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Relative Classpaths in AS3</title>
		<link>http://www.linneapetrillo.com/blog/2008/10/relative-classpaths-in-as3/</link>
		<comments>http://www.linneapetrillo.com/blog/2008/10/relative-classpaths-in-as3/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 19:38:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flash]]></category>

		<category><![CDATA[AS2]]></category>

		<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://www.linneapetrillo.com/blog/?p=34</guid>
		<description><![CDATA[I&#8217;ve been working in AS3 for about a year now and everyone in awhile I slip and use an AS2 property reference, for example ._alpha vs .alpha.  The other place I find myself slipping is with classpaths.  I work in a SVN development environment so it is important that all classpaths are defined relatively so they work across machines. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working in AS3 for about a year now and everyone in awhile I slip and use an AS2 property reference, for example ._alpha vs .alpha.  The other place I find myself slipping is with classpaths.  I work in a SVN development environment so it is important that all classpaths are defined relatively so they work across machines.  </p>
<p>For simplicity&#8217;s sake here&#8217;s a sample of a very basic small Flash project.</p>
<p><img class="alignnone size-full wp-image-35" title="flashprojectorg" src="http://www.linneapetrillo.com/blog/wp-content/uploads/2008/10/flashprojectorg.png" alt="" width="500" height="56" /></p>
<p>In AS2 I would set the classpath as &#8220;classes/&#8221; to have access to the MyClass.as file in my project.fla.</p>
<p>In AS3 that doesn&#8217;t fly and the classpath must be set as &#8221;../myProject/classes&#8221; or &#8220;./classes&#8221;.  I&#8217;m not 100% clear on why &#8220;classes/&#8221; no longer works as all three paths seem the same to me, but suffice to say this caused a fair share of headaches when I first made the jump to AS3.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linneapetrillo.com/blog/2008/10/relative-classpaths-in-as3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flash 40 AJAX 3.2?</title>
		<link>http://www.linneapetrillo.com/blog/2008/10/flash-40-ajax-32/</link>
		<comments>http://www.linneapetrillo.com/blog/2008/10/flash-40-ajax-32/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 21:25:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Web Dev]]></category>

		<category><![CDATA[AJAX]]></category>

		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.linneapetrillo.com/blog/?p=22</guid>
		<description><![CDATA[The numbers in the title refer to the percent of web sites on the internet that make use of Adobe Flash and the percent of websites that utilize the XMLHttpRequest to calculate the AJAX figure.  I came across these in an article over at Flash Magazine which referenced a survey done by the people over at Opera. 
These [...]]]></description>
			<content:encoded><![CDATA[<p>The numbers in the title refer to the percent of web sites on the internet that make use of Adobe Flash and the percent of websites that utilize the XMLHttpRequest to calculate the AJAX figure.  I came across these in an article over at <a href="http://www.flashmagazine.com/news/detail/how_many_sites_use_flash/" target="_blank">Flash Magazine</a> which referenced a survey done by the people over at <a href="http://dev.opera.com/articles/view/mama-key-findings/">Opera</a>. </p>
<p>These numbers took me by surprise, maybe its the sites that I visit but I had the impression that AJAX was taking the web by storm. It&#8217;s this perception that prompted me to cut my time in the AS3 world and spend some time getting more familiar with AJAX techniques and my favorite Javascript Library, JQuery.  I will continue utilizing both technologies but I just found it ironic to say the least that during a time where I&#8217;ve been very AJAX-centric that a report comes out showing such a strong flash prevalence.  Then again it could simply be inflated by all those horrid &#8220;punch the monkey&#8221; banner ads.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linneapetrillo.com/blog/2008/10/flash-40-ajax-32/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
