Membuat Form Registrasi ( Form Register For Blog )
Seperti biasa ikuti cara ini ( as always, follow this way ) : Login your account to blogger.com ( Login Ke Blogger.com ) Go to edit HTML ( Pergi Ke edit HTML ) Find the code ]]></ b: skin> ( Cari kode ]]></ b: skin> ) Put the code below, just above the code ]]></ b: skin> […]
Seperti biasa ikuti cara ini ( as always, follow this way ) :
- Login your account to blogger.com ( Login Ke Blogger.com )
- Go to edit HTML ( Pergi Ke edit HTML )
- Find the code ]]></ b: skin> ( Cari kode ]]></ b: skin> )
- Put the code below, just above the code ]]></ b: skin> ( Letakkan kode dibawah ini tepat diatas kode ]]></ b: skin> )
font-family: Arial;
font-size: 13px;
background-color: #026873;
background-image: -webkit-linear-gradient(0, rgba(255,255,255,.07) 50%, transparent 50%),
-webkit-linear-gradient(0, rgba(255,255,255,.13) 50%, transparent 50%),
-webkit-linear-gradient(0, transparent 50%, rgba(255,255,255,.17) 50%),
-webkit-linear-gradient(0, transparent 50%, rgba(255,255,255,.19) 50%);
background-image: -moz-linear-gradient(0, rgba(255,255,255,.07) 50%, transparent 50%),
-moz-linear-gradient(0, rgba(255,255,255,.13) 50%, transparent 50%),
-moz-linear-gradient(0, transparent 50%, rgba(255,255,255,.17) 50%),
-moz-linear-gradient(0, transparent 50%, rgba(255,255,255,.19) 50%);
background-image: -o-linear-gradient(0, rgba(255,255,255,.07) 50%, transparent 50%),
-o-linear-gradient(0, rgba(255,255,255,.13) 50%, transparent 50%),
-o-linear-gradient(0, transparent 50%, rgba(255,255,255,.17) 50%),
-o-linear-gradient(0, transparent 50%, rgba(255,255,255,.19) 50%);
background-image: linear-gradient(0, rgba(255,255,255,.07) 50%, transparent 50%),
linear-gradient(0, rgba(255,255,255,.13) 50%, transparent 50%),
linear-gradient(0, transparent 50%, rgba(255,255,255,.17) 50%),
linear-gradient(0, transparent 50%, rgba(255,255,255,.19) 50%);
background-size: 13px, 29px, 37px, 53px;
}
/*
Basic Styling from Twitter’s Bootstrap Framework – awesomeness!
*/
p {
margin: 0 0 9px;
}
label,
input,
button,
select,
textarea {
font-size: 13px;
font-weight: normal;
line-height: 18px;
}
input,
button,
select,
textarea {
font-family: “Helvetica Neue”, Helvetica, Arial, sans-serif;
}
label {
display: block;
margin-bottom: 5px;
}
select,
textarea,
input[type=”text”],
input[type=”password”],
input[type=”datetime”],
input[type=”datetime-local”],
input[type=”date”],
input[type=”month”],
input[type=”time”],
input[type=”week”],
input[type=”number”],
input[type=”email”],
input[type=”url”],
input[type=”search”],
input[type=”tel”],
input[type=”color”],
.uneditable-input {
display: inline-block;
height: 18px;
padding: 4px;
margin-bottom: 9px;
font-size: 13px;
line-height: 18px;
color: #555555;
}
input,
textarea {
width: 210px;
}
textarea {
height: auto;
}
textarea,
input[type=”text”],
input[type=”password”],
input[type=”datetime”],
input[type=”datetime-local”],
input[type=”date”],
input[type=”month”],
input[type=”time”],
input[type=”week”],
input[type=”number”],
input[type=”email”],
input[type=”url”],
input[type=”search”],
input[type=”tel”],
input[type=”color”],
.uneditable-input {
background-color: #ffffff;
border: 1px solid #cccccc;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
-ms-transition: border linear 0.2s, box-shadow linear 0.2s;
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
transition: border linear 0.2s, box-shadow linear 0.2s;
}
textarea:focus,
input[type=”text”]:focus,
input[type=”password”]:focus,
input[type=”datetime”]:focus,
input[type=”datetime-local”]:focus,
input[type=”date”]:focus,
input[type=”month”]:focus,
input[type=”time”]:focus,
input[type=”week”]:focus,
input[type=”number”]:focus,
input[type=”email”]:focus,
input[type=”url”]:focus,
input[type=”search”]:focus,
input[type=”tel”]:focus,
input[type=”color”]:focus,
.uneditable-input:focus {
border-color: rgba(82, 168, 236, 0.8);
outline: 0;
outline: thin dotted 9;
/* IE6-9 */
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
}
input[type=”radio”],
input[type=”checkbox”] {
margin: 3px 0;
*margin-top: 0;
/* IE7 */
line-height: normal;
cursor: pointer;
}
input[type=”submit”],
input[type=”reset”],
input[type=”button”],
input[type=”radio”],
input[type=”checkbox”] {
width: auto;
}
:-moz-placeholder {
color: #999999;
}
:-ms-input-placeholder {
color: #999999;
}
::-webkit-input-placeholder {
color: #999999;
}
.help-block,
.help-inline {
color: #555555;
}
.help-block {
display: block;
margin-bottom: 9px;
}
.help-inline {
display: inline-block;
*display: inline;
padding-left: 5px;
vertical-align: middle;
*zoom: 1;
}
.input-small {
width: 90px;
}
/*
Creation Specific Styles
*/
.container {
width: 500px;
margin: 50px auto;
padding: 20px;
position: relative;
background: #F3F3F3;
border: 1px solid white;
border-radius: 5px;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.container > h2 {
margin-top: 0;
}
.content-editable {
height: 200px;
background-color: #ffffff;
border: 1px solid #cccccc;
padding: 10px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
/* probably a bad way to position */
input[type=range] {position: relative; margin-left: 20px;}
input[type=range]:before {
content: attr(min);
margin-left: -20px;
position: relative;
top: 19px;
}
input[type=range]:after {
content: attr(max);
margin-right: -25px;
float: right;
position: relative;
top: -21px;
}
- Then place the following code, where you want ( Letakkan kode dibawah ini di tempat yang anda inginkan )
<h2>HTML5 Form Features</h2>
<form method=”get” onsubmit=”return false;”>
<div>
<label for=”username”>Username</label>
<input id=”username” type=”text” name=”username” pattern=”[A-Za-z0-9_]{6,15}”>
<p class=”help-inline”>(validation with regexp)</p>
<p class=”help-block”>alphabets, numbers and underscore allowed. min-length: 6. max-length: 15.</p>
</div>
<div>
<label for=”first_name”>First Name</label>
<input id=”first_name” type=”text” name=”first_name” required>
<p class=”help-inline”>can also use required=”required”</p>
</div>
<div>
<label for=”email”>Email:</label>
<input id=”email” type=”email” name=”email”>
<p class=”help-block”>`input type=”email”` – input some random text and submit</p>
</div>
<div>
<label for=”ph_email”>Email:</label>
<input id=”ph_email” type=”email” name=”email” placeholder=”hello@cssdeck.com”>
<p class=”help-inline”>(with placeholder)</p>
</div>
<div>
<label for=”url”>Website URL:</label>
<input id=”url” type=”url” name=”url” placeholder=”eg: cssdeck.com”>
<p class=”help-block”>`input type=”url”` – input some random text and submit</p>
</div>
<div>
<label for=”date”>Join Date:</label>
<input id=”date” type=”date” name=”date”>
</div>
<div>
<label for=”color”>Skin Color:</label>
<input id=”color” type=”color” name=”color”>
</div>
<div>
<label for=”age”>Age</label>
<input id=”age” type=”number” name=”age” min=”1″ max=”100″ step=”1″ value=”15″>
<p class=”help-inline”>between 1 and 100</p>
</div>
<div>
<label for=”tel”>Telephone Number</label>
<input id=”tel” type=”tel” name=”tel”>
<p class=”help-block”>`input type=”tel”`</p>
</div>
<div>
<label for=”search”>Search Memory</label>
<input id=”search” type=”search” name=”search”>
</div>
<div>
<label for=”auto_focus”>Auto Focus Me</label>
<input id=”auto_focus” type=”text” name=”auto_focus” autofocu>
<p class=”help-inline”>can also use autofocus=”autofocus”</p>
</div>
<div>
<label for=”range”>Me Is Range</label>
<input type=”range” name=”range” min=”0″ max=”10″ step=”1″>
<p class=”help-block”>set the `value` attribute to set an initial position</p>
</div>
<div>
<input type=”submit” name=”submit” value=”Submit”>
</div>
</form>
</div>
<div class=”container”>
<h2>Bonus</h2>
<form>
<div>
<label for=”files”>Select Multiple Files to Upload:</label>
<input id=”files” type=”file” name=”files” multiple>
<p class=”help-block”>`multiple` attribute lets you select multuiple files</p>
</div>
<div>
<label for=”bday”>Birth Date and Time:</label>
<input id=”bday” type=”datetime” name=”bday”>
<p class=”help-block”>only supported by Opera right now</p>
</div>
<div>
<label for=”btime”>Birth Time:</label>
<input id=”btime” type=”time” name=”btime”>
<p class=”help-block”>only supported by Opera right now</p>
</div>
<div>
<label for=”bweek”>Birth Week:</label>
<input id=”bweek” type=”week” name=”bweek”>
<p class=”help-block”>only supported by Opera right now</p>
</div>
<div>
<label for=”continent”>Continent:</label>
<input id=”continent” type=”text” list=”continents”>
<datalist id=”continents”>
<option value=”Africa”>
<option value=”Antarctica”>
<option value=”Asia”>
<option value=”Australia”>
<option value=”Europe”>
<option value=”North America”>
<option value=”South America”>
</datalist>
<p class=”help-inline”>Hit the down arrow in the textbox</p>
<p class=”help-block”>uses the new `datalist` element</p>
</div>
<div>
<label for=”captcha”>Is this Right? (Captcha)</label>
<input type=”text” class=”input-small” name=”operand1″ value=”10″>
+
<input type=”text” class=”input-small” name=”operand1″ value=”5″>
=
<output name=”sum”>15</output>
<p class=”help-block”>uses the new `output` element</p>
</div>
</form>
<p>The box below is editable. Type in and write anything
according to your wish!</p>
<div class=”content-editable” contenteditable></div>
<p class=”help-block”>`contenteditable` attribute. can also use
`contenteditable=”true”`</p>
</div>
- Finish ( Selesai )