<?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; CSS</title>
	<atom:link href="http://brandonbuttars.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://brandonbuttars.com</link>
	<description>More Like Random Buttars</description>
	<lastBuildDate>Fri, 02 Sep 2011 05:40:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>JQuery Dynamic CSS Class Demo</title>
		<link>http://brandonbuttars.com/2011/03/jquery-dynamic-css-class-demo/</link>
		<comments>http://brandonbuttars.com/2011/03/jquery-dynamic-css-class-demo/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 06:43:18 +0000</pubDate>
		<dc:creator>Brandon Buttars</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://brandonbuttars.com/?p=277</guid>
		<description><![CDATA[JQuery can be used in many ways.  Since I&#8217;m a web designer, I use it like a web designer would, to modify my CSS and enhance my UX.  Some of the basic stuff I tend to use JQuery for is &#8230; <a href="http://brandonbuttars.com/2011/03/jquery-dynamic-css-class-demo/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-278" title="JQuery" src="http://brandonbuttars.com/wp-content/uploads/2011/03/jquery-logo.png" alt="JQuery" width="248" height="141" />JQuery can be used in many ways.  Since I&#8217;m a web designer, I use it like a web designer would, to modify my CSS and enhance my UX.  Some of the basic stuff I tend to use JQuery for is to auto-assign classes to specific elements without having to muck up the code and worry about forgetting stuff.  Check out my latest demo/tutorial on <a title="JQuery Dynamic CSS Class Demo" href="http://brandonbuttars.com/demos/jquery-css-classes/">JQuery Dynamic CSS Class Demo</a>.</p>
<p><span id="more-277"></span>The demo goes over zebra striping, first-child/last-child, hovering, and just straight up ways of overcoming some still lingering cross-browser compatibility issues.  Hopefully you can gain something from it that can benefit you in your projects and websites.</p>
<h2 style="text-align: center;"><a title="Go To Demo Now" href="http://brandonbuttars.com/demos/jquery-css-classes/">Go to Demo Now</a></h2>
]]></content:encoded>
			<wfw:commentRss>http://brandonbuttars.com/2011/03/jquery-dynamic-css-class-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Theme Up in Alpha</title>
		<link>http://brandonbuttars.com/2011/02/new-theme-up-in-alpha/</link>
		<comments>http://brandonbuttars.com/2011/02/new-theme-up-in-alpha/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 09:41:37 +0000</pubDate>
		<dc:creator>Brandon Buttars</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Theming]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blue]]></category>
		<category><![CDATA[ButtarsAlpha]]></category>
		<category><![CDATA[orange]]></category>

		<guid isPermaLink="false">http://brandonbuttars.com/?p=239</guid>
		<description><![CDATA[I got my new theme somewhat coded and up tonight.  It&#8217;s just past 2:30am and I uploaded it.  I still see a bunch of styling that needs to be done and some widgets that need to be added, but I&#8217;m &#8230; <a href="http://brandonbuttars.com/2011/02/new-theme-up-in-alpha/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I got my new theme somewhat coded and up tonight.  It&#8217;s just past 2:30am and I uploaded it.  I still see a bunch of styling that needs to be done and some widgets that need to be added, but I&#8217;m feeling good about the theme.  Let me know if you&#8217;re interested in using it.  I&#8217;m thinking about releasing a more advanced version for the public, but I don&#8217;t know how interested people would be.</p>
]]></content:encoded>
			<wfw:commentRss>http://brandonbuttars.com/2011/02/new-theme-up-in-alpha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iFrame &#8211; Full Browser Window</title>
		<link>http://brandonbuttars.com/2009/12/iframe-full-browser-window/</link>
		<comments>http://brandonbuttars.com/2009/12/iframe-full-browser-window/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 02:01:39 +0000</pubDate>
		<dc:creator>Brandon Buttars</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://brandonbuttars.com/?p=116</guid>
		<description><![CDATA[I&#8217;ve been looking for a solution to create full page iFramed webpages with headers. Here is a solution I&#8217;ve started using for full screen iframes with headers. Here&#8217;s a link to my Snipplr code for it. I tried to embed &#8230; <a href="http://brandonbuttars.com/2009/12/iframe-full-browser-window/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking for a solution to create full page iFramed webpages with headers.  Here is a solution I&#8217;ve started using for full screen iframes with headers.  Here&#8217;s a link to my <a href="http://snipplr.com/view/22490/iframe--full-page-with-header/" title="Full Page iFrame Code">Snipplr code</a> for it.  I tried to embed it in this post but it didn&#8217;t work out very well.  The code has worked out great for me and I&#8217;ve shared it with a few people at work, and they have been using it and it&#8217;s been working great for them.  Rather than explain it I&#8217;ll let you take a look at it.</p>
]]></content:encoded>
			<wfw:commentRss>http://brandonbuttars.com/2009/12/iframe-full-browser-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PRE / CODE CSS Style</title>
		<link>http://brandonbuttars.com/2009/12/pre-code-css-style/</link>
		<comments>http://brandonbuttars.com/2009/12/pre-code-css-style/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 01:39:08 +0000</pubDate>
		<dc:creator>Brandon Buttars</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://brandonbuttars.com/?p=109</guid>
		<description><![CDATA[I don&#8217;t know if anyone has ever found their PRE or CODE not wrapping, but I have and this little gem of code is the code I use to clean it up.  Here&#8217;s a link to my Snipplr version of &#8230; <a href="http://brandonbuttars.com/2009/12/pre-code-css-style/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know if anyone has ever found their PRE or CODE not wrapping, but I have and this little gem of code is the code I use to clean it up.  Here&#8217;s a link to my <a title="PRE / CODE CSS Code" href="http://snipplr.com/view/22950/pre-css-code-for-all-browsers/">Snipplr</a> version of the code.</p>
<p><code>pre {<br />
white-space: pre-wrap;       /* css-3 should we be so lucky... */<br />
white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */<br />
white-space: -pre-wrap;      /* Opera 4-6 ?? */<br />
white-space: -o-pre-wrap;    /* Opera 7 ?? */<br />
word-wrap: break-word;       /* Internet Explorer 5.5+ */<br />
_white-space: pre;   /* IE only hack to re-specify in addition to word-wrap  */<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://brandonbuttars.com/2009/12/pre-code-css-style/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS HTML Class &#8211; Browser &amp; OS</title>
		<link>http://brandonbuttars.com/2009/12/css-html-class-browser-and-operating-system/</link>
		<comments>http://brandonbuttars.com/2009/12/css-html-class-browser-and-operating-system/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 01:32:26 +0000</pubDate>
		<dc:creator>Brandon Buttars</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://brandonbuttars.com/?p=104</guid>
		<description><![CDATA[I was trying to find a good snippet of code that would help me style the different browsers better.  I&#8217;ve used all the attribute hacks before but one thing I&#8217;ve run into lately is the fact that Chrome and Safari &#8230; <a href="http://brandonbuttars.com/2009/12/css-html-class-browser-and-operating-system/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was trying to find a good snippet of code that would help me style the different browsers better.  I&#8217;ve used all the attribute hacks before but one thing I&#8217;ve run into lately is the fact that <strong>Chrome and Safari end up interpreting and displaying input tags differently even though they are both Webkit based. </strong>There were not individual attribute hacks that I could find, but I was able to find this beauty over at <a title="CSS HTML Class Creator" href="http://github.com/rafaelp/css_browser_selector">http://github.com/rafaelp/css_browser_selector</a>.  I&#8217;ve also added the code to my <a title="My Snipplr Arsenal" href="http://snipplr.com/users/smoothdzion/">Snipplr Arsenal</a> so you can get it over at <a title="CSS Browser/OS Identifier" href="http://snipplr.com/view/23988/adds-os-and-browser-class-to-html-tag/">http://snipplr.com/view/23988/adds-os-and-browser-class-to-html-tag/</a></p>
<p><span id="more-104"></span><code>/*<br />
CSS Browser Selector v0.3.4 (Sep 29, 2009)<br />
Rafael Lima (http://rafael.adm.br)</p>
<p>http://rafael.adm.br/css_browser_selector</p>
<p>License: http://creativecommons.org/licenses/by/2.5/<br />
Contributors: http://rafael.adm.br/css_browser_selector#contributors<br />
*/<br />
function css_browser_selector(u){var ua = u.toLowerCase(),is=function(t){return ua.indexOf(t)&gt;-1;},g='gecko',w='webkit',s='safari',o='opera',h=document.getElementsByTagName('html')[0],b=[(!(/opera|webtv/i.test(ua))&amp;&amp;/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);</code></p>
<p>That code makes it so I can even validate my CSS and get rid of my attribute hacks.  The code adds a bunch of different classes to your HTML tag.  It adds the Operating System, the Browser, the Browser Version, and if Javascript is enabled or not.  You can do a lot with that info.  I was able to then create a Chrome specific style for my stylesheet.  Love this code.  It has been added to my regular arsenal of code.</p>
<p>Just include that code in your head or reference it as a separate file in your head.  I prefer a separate file, but to each their own.</p>
]]></content:encoded>
			<wfw:commentRss>http://brandonbuttars.com/2009/12/css-html-class-browser-and-operating-system/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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 &#8230; <a href="http://brandonbuttars.com/2009/09/css-select-options-internet-explorer-cut-off/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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>6</slash:comments>
		</item>
	</channel>
</rss>

