Cara Membuat Form Login Dengan CSS3

form login

السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ

 pada sehat semua kan ? hehe ,kali ini saya mau berbagi Cara Membuat Form Login Dengan CSS3
form login ini cukup simple namun indah bila di pandang mata heheh ^_^
tidak usah berlama lagi ya, silahkan simak tutorial berikut ini . 

1. seperti biasanya, silahkan buat file html bernama index.html dan ketikkan script berikut ini . 
 <!DOCTYPE html>
<html>
<head>
 <meta charset="utf-8">
 <title>Form Login With CSS</title>
 <link rel="stylesheet" type="text/css" href="style.css"> 
</head>
<body>
<form>
  <h1>Silahkan Login</h1>
  <input type="text" placeholder="Username"/>
  <input type="password" placeholder="Password"/>
  <button>Login</button>
</form>
</body>
</html>

2. buatlah file css bernaya style.css dan ketikkan script berikut .
 * {
  margin: 0;
  padding: 0;
  border: none;
  list-style: none;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
body {
  font: 15px/1.25 'Alef';
  color: #111111;

}
form {
  margin: 70px auto;
  background: #2a3644;
  width: 347px;
  text-align: center;
  padding: 40px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
  border-radius: 6px;
  -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
 -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
 box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
}
form > h1 {
  color: #f4f4f4;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.7);
  font-weight: 400;
  margin-bottom: 20px;
  
}
input {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
  display: block;
  width: 269px;
  padding: 15px;
  margin-bottom: 10px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
  border-radius: 6px;
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
  outline: none;
}
input:focus {
  background: rgba(0, 0, 0, 0.1);
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}
::-webkit-input-placeholder {
  color: rgba(225, 225, 225, 0.4);
}
:-moz-placeholder {
  color: rgba(225, 225, 225, 0.4);
}
::-moz-placeholder {
  color: rgba(225, 225, 225, 0.4);
}
:-ms-input-placeholder {
  color: rgba(225, 225, 225, 0.4);
}
button {
  position: relative;
  display: block;
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 17px;
  width: 270px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
  border-radius: 6px;
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
  font-size: 1.2em;
  background: #f26964;
  color: #f4f4f4;
  box-shadow: 0px 3px 0px #ab4b47;
  cursor: pointer;
}
button:active {
  top: 3px;
  box-shadow: none;
} 

akhirnya jadi juga, gimana  ? simple bukan, hehe
mohon maaf jika tidak ada demonya .
silahkan kalian praktekan ya .
dan Semoga bermanfaat bagi Anda semua

وَ السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ


SHARE THIS

Author:

Previous Post
Next Post
Anonymous
2 September 2015 at 09:49

blog blogger bnget gan.. sipp

Reply
avatar
2 September 2015 at 10:44

terima kasi gan infonya...

Reply
avatar
Adi
2 September 2015 at 11:23

thanks infonya gan, bisa dicoba tuh

Reply
avatar
2 September 2015 at 12:28

lumayan dapat coding2 nya thanks y gan

Reply
avatar
2 September 2015 at 18:41

wah bagus tuh, buat keyloger bsa kan?

Reply
avatar
2 September 2015 at 19:28

keren gan ane mau pasang ah :D

Reply
avatar
3 September 2015 at 03:49

Bagus banget gan, form loginnya.

Gabung ke Group FB ane yuk ?.

Reply
avatar
3 September 2015 at 17:00

gampang ternyata ya buatnya. kirain susah .. :D

Reply
avatar
3 September 2015 at 19:21

Wah keren gan cocok banget lagi nyari ginian :D izin comot gan :)

Reply
avatar
4 September 2015 at 13:09

mantap ni gan tutorialnya.... saya praktekkan yaa tq ni

Reply
avatar
5 September 2015 at 17:33

mantap gan, sy ini bisa sy praktekan di web sekolah yg ane buat. maksih gan..

Reply
avatar
Anonymous
5 September 2015 at 17:34

mantap gan ijin praktek

Reply
avatar
6 September 2015 at 16:54

Agak ribet ya gan tapi buat belajar bisa dicoba nih hheeh ijin comot gan

Reply
avatar
6 September 2015 at 17:18

mantap nih form loginnya,simple is the best :)

Reply
avatar
Anonymous
11 September 2015 at 13:15

Ijin newbie tips gan....

Reply
avatar
11 September 2015 at 13:21

Sipp lah pantengin grup ini terus lama2 pinter coding kaya agan "Chairul Anwar"
Btw nice post gan.

Reply
avatar
11 September 2015 at 16:07

wah thanks banget gan :D izin bookmark :D

Reply
avatar
14 September 2015 at 20:19

Makasih gan :D nambah ilmu :D

Reply
avatar