<?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>Scott Blaine &#187; css</title>
	<atom:link href="http://scottblaine.com/tag/css/feed" rel="self" type="application/rss+xml" />
	<link>http://scottblaine.com</link>
	<description>Omaha web developer</description>
	<lastBuildDate>Wed, 12 Oct 2011 01:00:22 +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>The HTML and CSS Behind Google&#8217;s Search Bar</title>
		<link>http://scottblaine.com/the-html-and-css-behind-googles-search-bar</link>
		<comments>http://scottblaine.com/the-html-and-css-behind-googles-search-bar#comments</comments>
		<pubDate>Wed, 28 Sep 2011 01:00:15 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[bar]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://scottblaine.com/?p=479</guid>
		<description><![CDATA[Earlier this year I was working on a project that had a text entry box similar to Google&#8217;s. It was a long bar in which you entered a line of text with a button at the end to &#8220;Add&#8221; it (instead of &#8220;Search&#8221;). I really liked Google&#8217;s styling for their search bar and figured I [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier this year I was working on a project that had a text entry box similar to Google&#8217;s. It was a long bar in which you entered a line of text with a button at the end to &#8220;Add&#8221; it (instead of &#8220;Search&#8221;). I really liked Google&#8217;s styling for their search bar and figured I would simply &#8220;lift&#8221; the HTML and CSS for it. However Google&#8217;s HTML source code, if you&#8217;ve ever looked at it, is heavily minimized. Everything is on one line with short, obscure CSS class names like &#8220;gac_v2.&#8221; Great for serving up webpages quickly, not so fun for trying to figure out how they&#8217;re styling their pages. I tried to find a simple &#8220;how to&#8221; for styling something in a similar way, but alas, there was none to be found.</p>
<p>Not to be deterred, I dug into their code, copied the portion I was interested in, removed all of the useless cruft, gave the CSS classes slightly more useful names, and came up with a working version that looked like this:</p>
<p><a href="http://scottblaine.com/blog/wp-content/uploads/2011/04/example-search-bar.png"><img class="alignnone size-full wp-image-481" title="example-search-bar" src="http://scottblaine.com/blog/wp-content/uploads/2011/04/example-search-bar.png" alt="" width="396" height="54" /></a></p>
<p>That should look rather familiar to you.</p>
<p>Seeing as I couldn&#8217;t find anything on the Intertubes for this (and I&#8217;m probably not the only one) I thought it might be helpful to share the HTML and CSS code for this &#8212; there&#8217;s also one image which is used as a gradient background for the search button (entirely optional; it just makes it look nice). If you find this useful leave a comment and let me know.</p>
<p>Right click and Save as:</p>
<ul>
<li><a href="http://scottblaine.com/blog/wp-content/uploads/2011/04/google-search-bar-example.html">HTML with embedded CSS</a></li>
<li><a href="http://scottblaine.com/blog/wp-content/uploads/2011/04/btn-bg.png">Image file (background image for button)</a></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://scottblaine.com/the-html-and-css-behind-googles-search-bar/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image-free tabs with clean CSS</title>
		<link>http://scottblaine.com/image-free-tabs-with-clean-css</link>
		<comments>http://scottblaine.com/image-free-tabs-with-clean-css#comments</comments>
		<pubDate>Sun, 30 Aug 2009 01:00:17 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[tabs]]></category>

		<guid isPermaLink="false">http://scottblaine.com/?p=370</guid>
		<description><![CDATA[It&#8217;s slightly amazing to me how hard it is to find someone that has image-free tabs that have clean CSS. I found a lot of articles on sliding-door tabs (requiring images) and a few articles that required CSS for each individual tab (yuck!). And what I wanted wasn&#8217;t even complex: Simple, right? I sure wasn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s slightly amazing to me how hard it is to find someone that has image-free tabs that have clean CSS. I found a lot of articles on sliding-door tabs (requiring images) and a few articles that required CSS for each individual tab (yuck!). And what I wanted wasn&#8217;t even complex:</p>
<p><a href="http://scottblaine.com/blog/wp-content/uploads/2009/08/tabs.png"><img class="alignnone size-full wp-image-371" title="tabs" src="http://scottblaine.com/blog/wp-content/uploads/2009/08/tabs.png" alt="tabs" width="260" height="52" /></a></p>
<p>Simple, right? I sure wasn&#8217;t going to go reinvent the wheel by writing my own CSS for them though. Thankfully after searching for a bit I came across <a title="CSS Mini Tabs (the UN-tab, tab)" href="http://www.simplebits.com/bits/minitabs.html">SimpleBits&#8217; Mini Tabs</a>. I didn&#8217;t want mini-tabs, but the HTML and CSS was remarkably clean. Only 4 CSS declarations on a simple HTML list with a class=&#8221;active&#8221; for the current tab. With some modification to the CSS I was able to come up with tabs that looked like the above (even looks good in IE7, amazingly).</p>
<p>So, if you want some decent looking/functioning tabs go yank the HTML/CSS from the above link.</p>
]]></content:encoded>
			<wfw:commentRss>http://scottblaine.com/image-free-tabs-with-clean-css/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

