JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8" />
<title>grey</title>
<link href="http://fonts.googleapis.com/css?family=Cantarell:regular,italic,bold,bolditalic" rel="stylesheet" />
<link href="http://fonts.googleapis.com/css?family=Droid+Serif:regular,italic,bold,bolditalic" rel="stylesheet" />
<link rel="stylesheet" href="grey.css" />
</head>
<body>
<nav>
<strong>Other Styles: </strong>
<a href="index.html">Gray</a> |
<a href="blue.html">Blue</a> |
<a href="green.html">Green</a> |
<a href="red.html">Red</a>
</nav>
<h1>CSS3 Forms</h1>
<p><strong>Notice:</strong> select (dropdown) elements are best viewed in a webkit browser</p>
<p><strong>Notice:</strong> checkboxes and radios require javascript to display correctly in mozilla browsers (still functional)</p>
<p><strong>Notice:</strong> IE is not supported in the least</p>
<form>
<p>
<label for="firsttext">Type Here:</label>
<input type="text" id="firsttext"/>
</p>
<fieldset>
<legend>What is your sex?</legend>
<p>
<input type="radio" name="sex" value="male" id="male" />
<label for="male">Male</label>
</p>
<p>
<input type="radio" name="sex" value="male" id="female" />
<label for="female">Female</label>
</p>
</fieldset>
<p>
<label for="check">Check This:</label>
<input type="checkbox" id="check" name="foo" />
</p>
<p>
<label for="secondtext">Name Here and Message Below:</label>
<input type="text" id="secondtext"/>
</p>
<p class="nolabel">
...
CSS
form {
font-family: "Tahoma", "Geneva", sans-serif;
color: #626292;
padding: 10px;
width: 600px;
}
fieldset {
border: 1px solid #626292;
padding: 0;
padding-left: -1px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-border-radius: 5px;
-khtml-border-radius: 5px;
}
legend {
font-size: 1.5em;
color: #626292;
font-weight: bold;
margin-left: 110px;
padding: 5px 10px;
border: 1px solid #626292;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-border-radius: 5px;
-khtml-border-radius: 5px;
text-transform: capitalize;
}
form p {
padding: 5px 0;
position: relative;
}
form p:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
form p.nolabel * {
margin-left: 110px;
}
label {
width: 100px;
text-align: right;
display: block;
float: left;
margin-right: 10px;
text-transform: capitalize;
line-height: 33px;
}
input[type=text], textarea, input[type=password] {
border: 1px solid #626292;
color: #626292;
padding: 10px;
vertical-align: text-top;
width: 300px;
-webkit-box-shadow: #d3d3e3 0.1em 0.1em 0.2em;
box-shadow: #d3d3e3 0.1em 0.1em 0.2em;
-moz-box-shadow: #d3d3e3 0.1em 0.1em 0.2em;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-border-radius: 5px;
-khtml-border-radius: 5px;
background: -webkit-gradient(linear, left top, left 25, from(#f8f8ff), color-stop(4%, #e8e8ee), to(#f8f8ff));
background: -moz-linear-gradient(top, #f8f8ff, #dedeee 1px, #e8e8ee 25px);
position: absolute;
bottom: 0;
left: 110px;
}
p.nolabel input[type=text], p.nolabel textarea, p.nolabel input[type=password] {
position: relative;
left: 0;
}
textarea {
min-height: 100px;
max-width: 300px;
min-width: 300px;
resize: both;
}
button, input[type=submit] {
border: 1px solid #626292;
color: #202050;
...