<?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>Cameron Baney Design Blog &#187; css3</title>
	<atom:link href="http://blog.cameronbaney.com/tag/css3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cameronbaney.com</link>
	<description>Web design information, tutorials, articles and inspiration</description>
	<lastBuildDate>Wed, 14 Jul 2010 22:58:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Create a CSS3 Search Form</title>
		<link>http://blog.cameronbaney.com/tutorials/create-a-css3-search-form/</link>
		<comments>http://blog.cameronbaney.com/tutorials/create-a-css3-search-form/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 22:47:39 +0000</pubDate>
		<dc:creator>Cameron Baney</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[search form]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blog.cameronbaney.com/?p=295</guid>
		<description><![CDATA[A site&#8217;s search form is a vital tool for visitors to quickly find exactly what they want. Since it is such a useful tool, it should not only stand out on your site in location, but also by appearance. Thanks to CSS3, creating a slick search form is easier than ever. Download SourceDemo The Markup [...]]]></description>
			<content:encoded><![CDATA[<p>A site&#8217;s search form is a vital tool for visitors to quickly find exactly what they want. Since it is such a useful tool, it should not only stand out on your site in location, but also by appearance. Thanks to CSS3, creating a slick search form is easier than ever.</p>
<p><span id="more-295"></span><br />
<span class="tutbtn r"><a class="tutsource" href="/tutorials/css3-search-form/css3-search-form.zip">Download Source</a></span><span class="tutbtn"><a class="tutdemo" href="/tutorials/css3-search-form/">Demo</a></span></p>
<h2>The Markup</h2>
<p>The markup is simple. All that is needed is a form, a text box and a submit button.</p>
<pre name="code" class="html">
<form id="search-form">
<input type="text" />
<input type="submit" value="Search" />
</form>
</pre>
<h2>CSS3 Magic</h2>
<p>The rest is done with CSS. This includes everything from gradients to rounded corners. CSS3 takes out a lot of the need for images, allowing elements to be more scalable as well as being easier to create. There are regular background colors included in the CSS for browsers that don&#8217;t support CSS3. They may not look as spiffy as the CSS3 version, but it will appear somewhat close.</p>
<pre name="code" class="css">
#search-form {
	background: #e1e1e1; /* Fallback color for non-css3 browsers */
	width: 365px;

	/* Gradients */
	background: -webkit-gradient( linear,left top, left bottom, color-stop(0, rgb(243,243,243)), color-stop(1, rgb(225,225,225)));
	background: -moz-linear-gradient( center top, rgb(243,243,243) 0%, rgb(225,225,225) 100%);

	/* Rounded Corners */
	border-radius: 17px;
	-webkit-border-radius: 17px;
	-moz-border-radius: 17px;

	/* Shadows */
	box-shadow: 1px 1px 2px rgba(0,0,0,.3), 0 0 2px rgba(0,0,0,.3);
	-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,.3), 0 0 2px rgba(0,0,0,.3);
	-moz-box-shadow: 1px 1px 2px rgba(0,0,0,.3), 0 0 2px rgba(0,0,0,.3);
}

/*** TEXT BOX ***/
input[type="text"]{
	background: #fafafa; /* Fallback color for non-css3 browsers */

	/* Gradients */
	background: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(250,250,250)), color-stop(1, rgb(230,230,230)));
	background: -moz-linear-gradient( center top, rgb(250,250,250) 0%, rgb(230,230,230) 100%);

	border: 0;
	border-bottom: 1px solid #fff;
	border-right: 1px solid rgba(255,255,255,.8);
	font-size: 16px;
	margin: 4px;
	padding: 5px;
	width: 250px;

	/* Rounded Corners */
	border-radius: 17px;
	-webkit-border-radius: 17px;
	-moz-border-radius: 17px;

	/* Shadows */
	box-shadow: -1px -1px 2px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.2);
	-webkit-box-shadow: -1px -1px 2px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.2);
	-moz-box-shadow: -1px -1px 2px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.2);
}

/*** USER IS FOCUSED ON TEXT BOX ***/
input[type="text"]:focus{
	outline: none;
	background: #fff; /* Fallback color for non-css3 browsers */

	/* Gradients */
	background: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(255,255,255)), color-stop(1, rgb(235,235,235)));
	background: -moz-linear-gradient( center top, rgb(255,255,255) 0%, rgb(235,235,235) 100%);
}

/*** SEARCH BUTTON ***/
input[type="submit"]{
	background: #44921f;/* Fallback color for non-css3 browsers */

	/* Gradients */
	background: -webkit-gradient( linear, left top, left bottom, color-stop(0, rgb(79,188,32)), color-stop(0.15, rgb(73,157,34)), color-stop(0.88, rgb(62,135,28)), color-stop(1, rgb(49,114,21)));
	background: -moz-linear-gradient( center top, rgb(79,188,32) 0%, rgb(73,157,34) 15%, rgb(62,135,28) 88%, rgb(49,114,21) 100%);

	border: 0;
	color: #eee;
	cursor: pointer;
	float: right;
	font: 16px Arial, Helvetica, sans-serif;
	font-weight: bold;
	height: 30px;
	margin: 4px 4px 0;
	text-shadow: 0 -1px 0 rgba(0,0,0,.3);
	width: 84px;
	outline: none;

	/* Rounded Corners */
	border-radius: 30px;
	-webkit-border-radius: 30px;
	-moz-border-radius: 30px;

	/* Shadows */
	box-shadow: -1px -1px 1px rgba(255,255,255,.5), 1px 1px 0 rgba(0,0,0,.4);
	-moz-box-shadow: -1px -1px 1px rgba(255,255,255,.5), 1px 1px 0 rgba(0,0,0,.2);
	-webkit-box-shadow: -1px -1px 1px rgba(255,255,255,.5), 1px 1px 0 rgba(0,0,0,.4);
}
/*** SEARCH BUTTON HOVER ***/
input[type="submit"]:hover {
	background: #4ea923; /* Fallback color for non-css3 browsers */

	/* Gradients */
	background: -webkit-gradient( linear, left top, left bottom, color-stop(0, rgb(89,222,27)), color-stop(0.15, rgb(83,179,38)), color-stop(0.8, rgb(66,143,27)), color-stop(1, rgb(54,120,22)));
	background: -moz-linear-gradient( center top, rgb(89,222,27) 0%, rgb(83,179,38) 15%, rgb(66,143,27) 80%, rgb(54,120,22) 100%);
}
input[type="submit"]:active {
	background: #4ea923; /* Fallback color for non-css3 browsers */

	/* Gradients */
	background: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(89,222,27)), color-stop(0.15, rgb(83,179,38)), color-stop(0.8, rgb(66,143,27)), color-stop(1, rgb(54,120,22)));
	background: -moz-linear-gradient( center bottom, rgb(89,222,27) 0%, rgb(83,179,38) 15%, rgb(66,143,27) 80%, rgb(54,120,22) 100%);
}
</pre>
<h2>Compatibility</h2>
<p>CSS3 works in most new browsers, with the exception of Internet Explorer (any version). This has been tested cross-browser and cross-platform. If you have any issues, please comment below and I will try to patch them.</p>
<p>In addition, this tutorial is just to style the search form. You can slap these styles on a search form such as the WordPress search form for functionality.</p>
<p><span class="tutbtn r"><a class="tutsource" href="/tutorials/css3-search-form/css3-search-form.zip">Download Source</a></span><span class="tutbtn"><a class="tutdemo" href="/tutorials/css3-search-form/">Demo</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cameronbaney.com/tutorials/create-a-css3-search-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update your mobile site for Opera Mini</title>
		<link>http://blog.cameronbaney.com/tutorials/update-your-mobile-site-for-opera-mini/</link>
		<comments>http://blog.cameronbaney.com/tutorials/update-your-mobile-site-for-opera-mini/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 20:30:13 +0000</pubDate>
		<dc:creator>Cameron Baney</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://blog.cameronbaney.com/?p=265</guid>
		<description><![CDATA[The unthinkable has happened: Opera Mini, a mobile version of the Opera browser, has been approved for the iPhone. It is a great browser, and has many features that the stock Safari browser doesn&#8217;t have. Unfortunately, your special iPhone version of your site may be broken when viewing it in Opera. This can easily be [...]]]></description>
			<content:encoded><![CDATA[<p>The unthinkable has happened: Opera Mini, a mobile version of the <a href="http://www.opera.com/">Opera browser</a>, has been approved for the iPhone. It is a great browser, and has many features that the stock Safari browser doesn&#8217;t have. Unfortunately, your special iPhone version of your site may be broken when viewing it in Opera. This can easily be fixed by adding in some more CSS.</p>
<h2><span id="more-265"></span>Supported CSS</h2>
<p>There may be some things that you don&#8217;t have to change for your mobile site&#8217;s CSS. Opera supports all of the advanced CSS selectors and pseudo classes that you have grown to love. Opera also supports the following CSS3 that you may have already been using:</p>
<ul>
<li>text-shadow</li>
<li>RGBA</li>
<li>outline</li>
</ul>
<p>Assuming you have been using -webkit specific CSS code, you may need to add some more CSS to get it to look right in Opera. Opera uses a mix of the generic properties, as well as specific Opera properties which has the &#8220;-o-&#8221; in front of the normal property such as &#8220;-o-box-sizing&#8221;.</p>
<h2>Box Shadows</h2>
<pre style="padding-left: 30px;">box-shadow: 1px 1px 2px rgba(0,0,0,.4);</pre>
<h2>Rounded Corners</h2>
<pre style="padding-left: 30px;">border-radius: 5px;</pre>
<h2>Box Sizing</h2>
<pre style="padding-left: 30px;">-o-box-sizing: border-box;</pre>
<h2>Transforms</h2>
<p>Transforms can be done by using the special &#8220;-o-&#8221; property. In this example I am going to be rotating my element.</p>
<pre style="padding-left: 30px;">-o-transform: rotate(7.5deg);</pre>
<h2>Gradients</h2>
<p>This was one of my favorite CSS3 properties. Unfortunately, this is one of the properties that Opera doesn&#8217;t support yet. Since Opera Mini is a regular iPhone app, they can put out regular updates. If they do support CSS gradients eventually, the update will be made available to all users.</p>
<h2>More resources</h2>
<p><a href="http://css3please.com/">CSS3 Please</a> &#8211; A quick guide that lets you see how to create different effects right on the site. The CSS on the site is editable, and all the changes are reflected live on the site.<a href="http://css3generator.com/"></a></p>
<p><a href="http://css3generator.com/">CSS3 Generator</a> &#8211; A very quick tool that lets you select what you want to do, and gives  you all CSS code for each browser (if available) to achieve it</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cameronbaney.com/tutorials/update-your-mobile-site-for-opera-mini/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create an Advanced CSS3 Menu</title>
		<link>http://blog.cameronbaney.com/tutorials/advanced-css3-menu/</link>
		<comments>http://blog.cameronbaney.com/tutorials/advanced-css3-menu/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 20:12:25 +0000</pubDate>
		<dc:creator>Cameron Baney</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[menu]]></category>

		<guid isPermaLink="false">http://blog.cameronbaney.com/?p=96</guid>
		<description><![CDATA[Creating a nice looking menu no longer needs all the code and time it use to, thanks to CSS3. This is a tutorial explaining how to create great looking buttons using just CSS3. Download SourceDemo Writing the Markup Create an unordered list with some links in it Link Big Link Bigger Link Biggest link of [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a nice looking menu no longer needs all the code and time it use to, thanks to CSS3. This is a tutorial explaining how to create great looking buttons using just CSS3.</p>
<p><span class="tutbtn r"><a class="tutsource" href="http://blog.cameronbaney.com/tutorials/cbdb-menu/cbdb-menu.zip">Download Source</a></span><span class="tutbtn"><a class="tutdemo" href="http://blog.cameronbaney.com/tutorials/cbdb-menu/demo.html">Demo</a></span><br />
<span id="more-96"></span></p>
<h3>Writing the Markup</h3>
<p>Create an unordered list with some links in it</p>
<pre name="code" class="html">
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Big Link</a></li>
<li><a href="#">Bigger Link</a></li>
<li><a href="#">Biggest link of them all</a></li>
<li><a href="#">Link</a></li>
</ul>
</pre>
<hr/>
<p>Add classes to the elements. In this case, we are going to add the &#8220;cbdb-menu&#8221; to the unordered list, and colors to the list items.</p>
<pre name="code" class="html">
<ul class="cbdb-menu">
<li class="red"><a href="#">Link</a></li>
<li class="green"><a href="#">Big Link</a></li>
<li class="yellow"><a href="#">Bigger Link</a></li>
<li class="cyan"><a href="#">Biggest link of them all</a></li>
<li class="blue"><a href="#">Link</a></li>
</ul>
</pre>
<h3>Styling the buttons with CSS3</h3>
<p>That&#8217;s all the markup you need. Right now your list looks plain, but CSS will make it look sharp. Let&#8217;s start by adding the style for the menu.</p>
<pre name="code" class="css">
.cbdb-menu li {
	display: block;
	float: left;
	line-height: 35px;
	list-style:none;
	margin: 0 5px;
	padding: 0 15px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
	-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}
</pre>
<p>This applies these styles to the list items of the unordered list with the &#8220;cbdb-menu&#8221; class. Notice we are using browser specific tags. Those are the special CSS tags that allow us to achieve the effects we could only get by using images before. The <em>border-radius</em> tag gives the buttons rounded corners, while the <em>box-shadow</em> tag gives them a drop shadow.</p>
<hr/>
<p>With the buttons stylized, the next step is to style the button&#8217;s text. Add the following to your stylesheet.</p>
<pre name="code" class="css">
.cbdb-menu li a {
	color: rgba(255, 255, 255, 0.8);
	font: 18px "Myriad Pro","Lucida Grande",Helvetica,Arial,sans-serif;
        font-weight: bold;
	text-decoration: none;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}
.cbdb-menu a:hover {
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}
li.dark a {
	color: rgba(0, 0, 0, 0.8);
font-weight: bold;
	text-decoration: none;
	text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.4);
}
</pre>
<p>The properties for <em>.cbdb-menu li a</em> make it look more like a button than a link. The text-shadow property lets the button look inset in the button. The <em>dark</em> class is an optional class that you can put on your list items if you want dark text.</p>
<h3>That&#8217;s it!</h3>
<p>Now you have your own super sexy menu built entirely with CSS3. Since these buttons are made with CSS3, they are easily expandable based on how long the link is. The techniques aren&#8217;t limited to creating a menu. The same CSS can be applied to regular links to create easy and great looking call to action buttons, submit buttons, or any other button you can think of!</p>
<p>For even more information about CSS3, visit <a href="http://www.css3.info">www.css3.info</a>.</p>
<p><span class="tutbtn r"><a class="tutsource" href="http://blog.cameronbaney.com/tutorials/cbdb-menu/cbdb-menu.zip">Download Source</a></span><span class="tutbtn"><a class="tutdemo" href="http://blog.cameronbaney.com/tutorials/cbdb-menu/demo.html">Demo</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cameronbaney.com/tutorials/advanced-css3-menu/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
