<?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>Brandon Buttars &#187; Development</title>
	<atom:link href="http://brandonbuttars.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://brandonbuttars.com</link>
	<description>more like Random Buttars</description>
	<lastBuildDate>Mon, 22 Mar 2010 01:33:07 +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>CSS Select Options IE Cut Off</title>
		<link>http://brandonbuttars.com/2009/09/css-select-options-internet-explorer-cut-off/</link>
		<comments>http://brandonbuttars.com/2009/09/css-select-options-internet-explorer-cut-off/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 17:26:13 +0000</pubDate>
		<dc:creator>Brandon Buttars</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://brandonbuttars.com/?p=92</guid>
		<description><![CDATA[So I&#8217;ve been working for the last couple of days on a bug at work that is an IE specific bug but may actually help with other browsers in different circumstances.  I&#8217;m surprised I haven&#8217;t run into this bug sooner than I had.  I first read a great article on css-tricks.com that I [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been working for the last couple of days on a bug at work that is an IE specific bug but may actually help with other browsers in different circumstances. <strong> I&#8217;m surprised I haven&#8217;t run into this bug sooner than I had.</strong>  I first read a great article on css-tricks.com that I borrowed the screenshot from to illustrate the issue.  Their method was good but not exactly what I was looking for.  So I decided to come up with my own code.</p>
<p><span id="more-92"></span><div id="attachment_101" class="wp-caption aligncenter" style="width: 580px"><img src="http://brandonbuttars.com/wp-content/uploads/2009/09/selectproblem.png" alt="Select Problem with IE" title="Select Problem with IE" width="570" height="387" class="size-full wp-image-101" /><p class="wp-caption-text">Select Problem with IE</p></div>
<p>Most of you probably ran into this article because you are half bald trying to figure out how to make your select box options show their full text in Internet Explorer when the select option has a static size set.  Like the figure above illustrates, looks simple to fix but holy cow did it take a lot of research to figure out the best way to do it.  After hours of research, I found out that I can&#8217;t do it with CSS alone.  Many solutions I saw out there used Javascript and injected CSS in the Javascript.  I&#8217;m not a big fan of CSS in Javascript.  I&#8217;d rather have my CSS separate and change the way something looks in the stylesheet.  For that reason <strong>I find myself using jQuery&#8217;s addClass, removeClass, toggleClass, and toggle quite often.</strong>  That is what this code is going to do for you.  I don&#8217;t think this is the best way for everyone, but it is the best way for me.</p>
<p>I&#8217;m not a programmer per say so I stick to the different code libraries.  I am a jQuery man so my <strong>code requires <a href="http://jquery.com" title="jQuery">jQuery</a></strong>.  So Here is my code and I&#8217;ll explain after you see it.</p>
<pre>

    $(function() {
      $('select').focus(function(){
        $(this).addClass('ie_select');
      });
      $('select').blur(function(){
        $(this).removeClass('ie_select');
      });
    });
</pre>
<p>Place that code in the head of your document <strong>wrapped in a script tag</strong> or however you like to call your Javascript and create a specific CSS class called <em>.ie_select</em> in your stylesheet and style it according to what you need it to do.  If you only want to apply the Javascript to specific browsers, you&#8217;ll need to add some conditional statements to your code.</p>
<h4>It&#8217;s fairly straight forward code.  This is what is going on: </h4>
<ol>
<li>When a select item has focus, add the CSS class of <em>.ie_select</em> to the select item. </li>
<li>When a select item loses focus or blurs, remove the CSS class of <em>.ie_select</em> from the select item.</li>
</ol>
<p>I&#8217;ve found this code is much more readable to someone like myself who dabbles in jQuery when it comes to presentational use of it.  That is exactly what the purpose of this code is, to fix presentation.</p>
<h4>FYI</h4>
<p>For what I was doing I had to add <em>position: absolute</em> to my CSS for <em>.ie_select</em> to get things to display the way I needed.  A majority of the tutorials out there did nothing more than change from a fixed width on the select to a <em>width: auto</em> and that seemed to be all they needed.  My layout was a bit more complicated and that didn&#8217;t work for me.  This code will not style your select element for you, but it will enable you to be able to style it the way you need things styled.</p>
]]></content:encoded>
			<wfw:commentRss>http://brandonbuttars.com/2009/09/css-select-options-internet-explorer-cut-off/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Cross Browser Compatibility Testing</title>
		<link>http://brandonbuttars.com/2009/07/cross-browser-compatibility-testing/</link>
		<comments>http://brandonbuttars.com/2009/07/cross-browser-compatibility-testing/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 19:19:52 +0000</pubDate>
		<dc:creator>Brandon Buttars</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://brandonbuttars.com/?p=30</guid>
		<description><![CDATA[At work this week I have spent a lot of time making sure things look good in all web browsers.  These are the browsers that I have been checking things on lately the most.

Safari
Flock
Firefox
Seamonkey
Chrome
Internet Explorer 6
Internet Explorer 7
Internet Explorer 8
Opera

I just threw Seamonkey in the testing for the heck of it.  I&#8217;m the least concerned [...]]]></description>
			<content:encoded><![CDATA[<p>At work this week I have spent a lot of time making sure things look good in all web browsers.  These are the browsers that I have been checking things on lately the most.</p>
<ul>
<li>Safari</li>
<li>Flock</li>
<li>Firefox</li>
<li>Seamonkey</li>
<li>Chrome</li>
<li>Internet Explorer 6</li>
<li>Internet Explorer 7</li>
<li>Internet Explorer 8</li>
<li>Opera</li>
</ul>
<p><span id="more-30"></span>I just threw Seamonkey in the testing for the heck of it.  I&#8217;m the least concerned about Opera.  It is crazy how inconsistent even Internet Explorer is.  Some of the sites I&#8217;ve been checking look different in IE6, IE7, and IE8 from each other.  All unique in themselves.  I of course have got to say &#8220;Internet Explorer Sucks!&#8221;  That phrase is an unspoken in most places I&#8217;ve worked.  Everyone knows everyone else hates IE so you don&#8217;t even have to say it.</p>
<p>It can be tricky cross browser checking all the different browsers, so I&#8217;ll let you know my setup.</p>
<ul>
<li><a title="24&quot; iMac" href="http://www.apple.com/imac/specs.html">24&#8243; iMac</a> &#8211; Leopard
<ul>
<li><a title="Firefox" href="http://www.mozilla.com/en-US/firefox/upgrade.html">Firefox</a></li>
<li><a title="Flock" href="http://flock.com/">Flock</a></li>
<li><a title="Opera" href="http://www.opera.com/">Opera</a></li>
<li><a title="Safari" href="http://www.apple.com/safari/">Safari</a></li>
<li><a title="Seamonkey" href="http://www.seamonkey-project.org/">Seamonkey</a></li>
<li><a title="VMWare Fusion" href="http://www.vmware.com/products/fusion/">VMWare Fusion</a> &#8211; Windows XP
<ul>
<li><a title="Google Chrome" href="http://www.google.com/chrome">Chrome</a></li>
<li><a title="Firefox" href="http://www.mozilla.com/en-US/firefox/upgrade.html">Firefox</a></li>
<li><a title="IE Tester" href="http://www.my-debugbar.com/wiki/IETester/HomePage">IE Tester</a>
<ul>
<li>Internet Explorer 6</li>
<li>Internet Explorer 7</li>
<li>Internet Explorer 8</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Hopefully this has helped someone.  Alternatives to VMWare Fusion are <a title="VirtualBox" href="http://www.virtualbox.org/">VirtualBox</a> and <a title="Parallels Desktop" href="http://www.parallels.com/products/desktop/">Parallels Desktop</a>.  You have to have a Windows install running to test Internet Explorer properly.</p>
<p>This setup is working great for me and I trust the tests I&#8217;m running also.  I&#8217;ve tried Multiple IE&#8217;s and always have issues with cookies and form testing.  I have found IE Tester works way better than anything I&#8217;ve ever used before.</p>
]]></content:encoded>
			<wfw:commentRss>http://brandonbuttars.com/2009/07/cross-browser-compatibility-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
