CSS3 creates beautiful 3D forms and css33d forms
<! Doctype html>
<Html lang = "en-US">
<Head>
<Meta charset = "UTF-8">
<Title> Create a 3D form in CSS3 </title>
<Style type = "text/css">
Body {
Background-color: # f7f0da;
Background-image:-webkit-linear-gradient (180deg, transparent 90%, # eae4cf 10% );
Background-image:-moz-linear-gradient (180deg, transparent 90%, # eae4cf 10% );
Background-image:-o-linear-gradient (180deg, transparent 90%, # eae4cf 10% );
Background-image:-ms-linear-gradient (180deg, transparent 90%, # eae4cf 10% );
Background-image: linear-gradient (180deg, transparent 90%, # eae4cf 10% );
Background-size: 5px 50px;
}
. Box {
Margin: 20px auto;
Width: 560px;
Text-align: center;
Font-weight: bold;
}
. Box div: first-child {
Font-size: 60px;
Margin-bottom: 20px;
Text-shadow: 0 2px 0 # c0c0c0, 0 3px #979385;
}
. Box. input_control {
Position: relative;
Height: 100px;
}
. Box input {
Position: relative;
Font-size: 18px;
Height: 56px;
Width: 100%;
Padding-left: 10px;
Border: 12px solid # fff;
Border-radius: 3px;
Box-shadow: inset 0 0 1px # c0c0c0, inset 1px 2px 0 # e6e6e6, 1px 2px 0 # c0c0c0,-1px 2px 0 # c0c0c0, 2px 3px 0 # c0c0c0, -2px 3px 0 # c0c0c0, 2px 12px 0 # c0c0c0,-2px 12px 0 # c0c0c0, 0 2px 0 3px #979797,0 10px 0 3px #979797,-2px 15px 10px rgba, 0 ,. 6 );
-Webkit-box-sizing: border-box;
-Moz-box-sizing: border-box;
-O-box-sizing: border-box;
-Ms-box-sizing: border-box;
Box-sizing: border-box;
-Webkit-transition: all 0.1 s transfer-in;
-Moz-transition: all 0.1 s bytes-in;
-Ms-transition: all 0.1 s bytes-in;
-O-transition: all 0.1 s bytes-in;
Transition: all 0.1 s bytes-in;
}
. Box label {
Position: absolute;
Top:-2px;
Right: 50px;
Width: 74px;
Height: 56px;
Color: # f3f2f1;
Text-shadow: 0 3px 1px #9e2719;
Border: 1px solid # dd684f;
Background:-webkit-linear-gradient (top, # e78d7b 0, # dd684f 72px );
Background:-moz-linear-gradient (top, # e78d7b 0, # dd684f 72px );
Background:-o-linear-gradient (top, # e78d7b 0, # dd684f 72px );
Background:-ms-linear-gradient (top, # e78d7b 0, # dd684f 72px );
Background: linear-gradient (top, # e78d7b 0, # dd684f 72px );
Box-shadow: 0 14px 0 #9c2912, 0 0 5px rgba (0, 0, 0,. 3 );
-Webkit-transition: all 0.1 s transfer-in;
-Moz-transition: all 0.1 s bytes-in;
-O-transition: all 0.1 s bytes-in;
-Ms-transition: all 0.1 s bytes-in;
Transition: all 0.1 s bytes-in;
}
. Box label: after {
Position: absolute;
Display: block;
Width: 74px;
Text-align: center;
Font: normal 30px/56px 'icomoon ';
Speak: none;
-Webkit-font-smoothing: antialiased;
-Moz-font-smoothing: antialiased;
-O-font-smoothing: antialiased;
-Ms-font-smoothing: antialiased;
Font-smoothing: antialiased;
}
. Input_control: nth-of-type (2) label: after {
Content: "\ 21 ";
}
. Input_control: nth-of-type (3) label: after {
Content: "\ 22 ";
}
. Input_control: nth-of-type (4) label: after {
Content: "\ 23 ";
}
. Box input: focus {
Outline: 0 none;
Top: 2px;
Box-shadow: inset 0 0 1px # c0c0c0, inset 1px 2px 0 # e6e6e6, 1px 2px 0 # c0c0c0,-1px 2px 0 # c0c0c0, 1px 3px 0 # c0c0c0, -2px 3px 0 # c0c0c0, 2px 12px 0 # c0c0c0,-2px 12px 0 # c0c0c0, 0 2px 0 3px #979797,0 10px 0 3px #979797,-2px 15px 10px rgba, 0 ,. 6 );
}
. Box input: focus + label {
Top: 0;
}
:-Webkit-input-placeholder {
Color: # d94a2d;
Font-style: italic;
}
. Box. btn {
Position: relative;
Width: 210px;
Height: 60px;
Color: #4c6e03;
Font: bold 35px "Impact ";
Text-indent: 10px;
Letter-spacing: 3px;
Text-align: left;
Margin-bottom: 20px;
Border: none;
Border-radius: 6px;
Text-shadow:-1px 2px 0 # c4e184;
Box-shadow: 1px 2px 0 #5f8214,-1px 2px 0 #5f8214, 2px 3px 0 #5f8214,-2px 3px 0 #5f8214, 2px 12px 0 #5f8214, -2px 12px 0 #5f8214, 0 2px 0 3px #304601,0 10px 0 3px #304601,-2px 15px 10px rgba (, 0, 0 ,. 6 );
Background:-webkit-linear-gradient (top, # c5e185, # a5c65c );
-Webkit-transition: all 0.1 s transfer-in;
-Moz-transition: all 0.1 s bytes-in;
-O-transition: all 0.1 s bytes-in;
-Ms-transition: all 0.1 s bytes-in;
Transition: all 0.1 s bytes-in;
}
. Box. btn: after {
Position: absolute;
Display: block;
Content: "\ 25 ";
Width: 36px;
Height: 36px;
Border-radius: 18px;
Background: #5f8214;
Top: 10px;
Right: 20px;
Text-indent: 5px;
Text-align: center;
Color: # b3d36e;
Text-shadow: 0 3px 0 #325207;
Box-shadow: inset 0 6px 0 #325207;
Font: normal 18px/40px 'icomoon ';
Speak: none;
-Webkit-font-smoothing: antialiased;
-Moz-font-smoothing: antialiased;
-O-font-smoothing: antialiased;
-Ms-font-smoothing: antialiased;
Font-smoothing: antialiased;
}
. Box. btn: hover {
Background:-webkit-linear-gradient (top, # a2c452, # a5c65c );
Background:-moz-linear-gradient (top, # a2c452, # a5c65c );
Background:-ms-linear-gradient (top, # a2c452, # a5c65c );
Background:-o-linear-gradient (top, # a2c452, # a5c65c );
Background: linear-gradient (top, # a2c452, # a5c65c );
}
. Box. btn: active {
Top: 2px;
Box-shadow: 1px 2px 0 # a5c65c,-1px 2px 0 # a5c65c, 1px 3px 0 # a5c65c,-2px 3px 0 #5f8214, 2px 12px 0 #5f8214, -2px 12px 0 #5f8214, 0 2px 0 3px #5f8214, 0 10px 0 3px #304601,-2px 15px 10px rgba (0, 0, 0 ,. 6 );
}
. Box p {
Color: # d94a2d;
Line-height: 30px;
Font-size: 14px;
}
@ Font-face {
Font-family: 'icomoon ';
Src: url ('fonts/icomoon. eot ');
Src: url ('fonts/icomoon. eot? # Iefix') format ('embedded-opentype '),
Url ('fonts/icomoon. svg # icomoon ') format ('svg '),
Url ('fonts/icomoon. woff') format ('woff '),
Url ('fonts/icomoon. ttf') format ('truetype ');
Font-weight: normal;
Font-style: normal;
}
</Style>
</Head>
<Body>
<Div> <A href = "http://www.999jiujiu.com/"> http://www.999jiujiu.com/</A> </div>
<Div class = "page">
<Section class = "demo">
<Div class = "box">
<Form>
<Div> secure login </div>
<Div class = "input_control">
<Input type = "text" id = "inputName" placeholder = "Your Name">
<Label for = "inputName"> </label>
</Div>
<Div class = "input_control">
<Input type = "text" id = "inputEmail" placeholder = "Your Email">
<Label for = "inputName"> </label>
</Div>
<Div class = "input_control">
<Input type = "password" id = "inputPassword" placeholder = "******">
<Label for = "inputName"> </label>
</Div>
<Div>
<Button type = "submit" class = "btn"> LOGIN </button>
</Div>
</Form>
</Div>
</Section>
</Div>
</Body>
</Html>