<?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; html</title>
	<atom:link href="http://scottblaine.com/tag/html/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>
	</channel>
</rss>

