<?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>Codrops &#187; rounded-borders</title>
	<atom:link href="http://tympanus.net/codrops/tag/rounded-borders/feed/" rel="self" type="application/rss+xml" />
	<link>http://tympanus.net/codrops</link>
	<description>Useful resources and inspiration for creative minds</description>
	<lastBuildDate>Mon, 06 Feb 2012 07:30:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CSS3 big style fieldset registration form</title>
		<link>http://tympanus.net/codrops/2009/09/01/css3-big-style-fieldset-registration-form/</link>
		<comments>http://tympanus.net/codrops/2009/09/01/css3-big-style-fieldset-registration-form/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 21:50:41 +0000</pubDate>
		<dc:creator>Mary Lou</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[box-shadow]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[rounded-borders]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=183</guid>
		<description><![CDATA[Experimenting with CSS3, I created a big style registration form with rounded borders and shadow effects. The only image used is not the button, but the pen that serves as a background image for the form itself. Click on the image to see the demo of the page: The CSS code has a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>Experimenting with CSS3, I created a big style registration form with rounded borders and shadow effects. The only image used is not the button, but the pen that serves as a background image for the form itself.</p>
<p>Click on the image to see the demo of the page:</p>
<div id="attachment_184" class="wp-caption alignnone" style="width: 464px"><a href="http://tympanus.net/codrops/wp-content/uploads/2009/09/css3_form/css3form.html"><img class="size-full wp-image-184" title="registration_form" src="http://tympanus.net/codrops/wp-content/uploads/2009/09/registration_form.png" alt="Click on the image to see a DEMO" width="454" height="278" /></a><p class="wp-caption-text">Click on the image to see a DEMO</p></div>
<p><span id="more-183"></span>The CSS code has a lot of CSS3 elements and this form will only work in browsers that have support for CSS3 (which IE of course has not):</p>
<pre class="brush: css">form.registration{
 width:600px;
 float:left;
 color:#818181;
 background: #f1f1f1 url(pen.png) no-repeat top right;
 border: 2px solid #ccc;
 padding:10px;
 font-family: Georgia;
 font-size: 14px;
 -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
 -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
 -moz-border-radius: 15px;
 -webkit-border-radius: 15px;
}</pre>
<p>The form will have rounded borders and a box shadow which looks very intriguing by using rgba values. Next, we define how the fieldset should be positioned:</p>
<pre class="brush: css">form.registration fieldset{
  border-top:1px solid #ccc;
  border-left:0;
  border-bottom:0;
  border-right:0;
  padding:6px;
  margin:0px 30px 0px 0px;
}</pre>
<p>The legend will give a name to the fieldset and we want it to have a less intense color:</p>
<pre class="brush: css">form.registration legend{
  text-align:left;
  color:#ccc;
  font-size:18px;
  padding:0px 4px 0px 4px;
  margin-left:20px;
}</pre>
<p>Now, let&#8217;s define the rest of the form:</p>
<pre class="brush: css">form.registration label{
  font-size: 32px;
  width:200px;
  float: left;
  text-align: right;
  color:#999;
  clear:left;
  margin:4px 4px 0px 0px;
  padding:0px;
}
form.registration input{
  font-family: Georgia;
  font-size: 28px;
  float:left;
  width:300px;
  border:1px solid #cccccc;
  margin:2px 0px 2px 2px;
  color:#00abdf;
  height:32px;
  padding:3px;
  -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
}
form.registration input:focus, form.registration select:focus{
  background-color:#E0E6FF;
}
form.registration select{
  font-family: Georgia;
  font-size: 28px;
  float:left;
  border:1px solid #cccccc;
  margin:2px 0px 2px 2px;
  color:#00abdf;
  height:40px;
  -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
}</pre>
<p>And now, let&#8217;t define some style for the CSS3 button:</p>
<pre class="brush: css">.button, .button:visited{
  float:right;
  text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(0,0,0,0.25);
  cursor: pointer;
  padding: 5px 10px 5px 5px;
  color: #fff;
  text-decoration: none;
  font-size: 32px;
  padding: 10px 15px;
  background-color: #00abdf;
  display: inline-block;
  -moz-border-radius: 10px;
 -webkit-border-radius: 10px;
 -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
 -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.button:hover{
  background-color: #777;
}</pre>
<p>The html code looks as follows:</p>
<pre class="brush: html">&lt;form&gt;
 &lt;fieldset&gt;
 &lt;legend&gt;About you&lt;/legend&gt;
 &lt;label&gt;First name&lt;/label&gt;
 &lt;input type="text" maxlength="100" value=""/&gt;           
 &lt;label&gt;Last name&lt;/label&gt;
 &lt;input type="text" maxlength="100" value=""/&gt;                                  
 &lt;label&gt;Birthdate&lt;/label&gt;
 &lt;select&gt;
 &lt;option value="1"&gt;1&lt;/option&gt;
 &lt;option value="2"&gt;2&lt;/option&gt;                             
 &lt;/select&gt;
 &lt;select&gt;                               
 &lt;option value="1"&gt;January&lt;/option&gt;
 &lt;option value="2"&gt;February&lt;/option&gt;
 &lt;/select&gt;
 &lt;select&gt;                           
 &lt;option value="2009"&gt;2009&lt;/option&gt;
 &lt;option value="2008"&gt;2008&lt;/option&gt;              
 &lt;/select&gt;          
 &lt;/fieldset&gt;
 &lt;fieldset&gt;
 &lt;legend&gt;Account details&lt;/legend&gt;
 &lt;label&gt;E-Mail&lt;/label&gt;
 &lt;input type="text" maxlength="120" value=""/&gt;
 &lt;label&gt;Password&lt;/label&gt;
 &lt;input type="password" maxlength="20"/&gt;                                          
 &lt;/fieldset&gt;
 &lt;fieldset&gt;   
 &lt;a&gt;Register&lt;/a&gt;  
 &lt;/fieldset&gt;   
&lt;/form&gt;</pre>
<p>Enjoy!</p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/09/01/css3-big-style-fieldset-registration-form/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  tympanus.net/codrops/tag/rounded-borders/feed/ ) in 0.21436 seconds, on Feb 8th, 2012 at 6:02 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 8th, 2012 at 7:02 pm UTC -->
