A simple login box: HTML (table) + CSS

Source: Internet
Author: User

<! Doctype HTML>
<HTML>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> logon box </title>
</Head>
<Style>
* {Margin: 0; padding: 0 ;}
. Login {
Width: 334px;
Height: 220px;
Margin: 0 auto;
Position: absolute;
Left: 40%;
Top: 40%;
}
. Login_title {
Color: #000000;
Font: bold 14px/37px Arial, Helvetica, sans-serif;
Height: 37px;
Padding-left: 35px;
Text-align: left;
}

. Login_cont {
Background: None repeat scroll 0 0 # ffffff;
Border: 1px solid # b8b7b7;
Height: 152px;
Padding-top: 30px;
}
. Form_table {
Float: left;
Margin-top: 10px;
Table-layout: fixed;
Width: 100%;
}
. Form_table Th {
Color: #333333;
Font-weight: bold;
Padding: 5px 8px 5px 0;
Text-align: right;
White-space: nowrap;
}
. Form_table TD {
Color: #717171;
Line-Height: 200%;
Padding: 6px 0 5px 10px;
Text-align: left;
}
. Login_cont input. Submit {
Background-position: 0-37px;
Height: 29px;
Margin: 10px 14px 0 0;
Width: 82px;
}
</Style>
<Body>
<Div class = "login">
<Div class = "login_title"> background management logon </div>
<Div class = "login_cont">
<Form action = ''method = 'post'>
<Table class = "form_table">
<Col width = "90px"/>
<COL/>
<Tr>
<TH> User Name: </Th> <TD> <input class = "normal" type = "text" name = "admin_name" alt = "Enter the user name"/> </TD>
</Tr>
<Tr>
<TH> password: </Th> <TD> <input class = "normal" type = "password" name = "password" alt = "enter the password"/> </TD>
</Tr>
<Tr>
<TH> </Th> <TD> <input class = "Submit" type = "Submit" value = "Logon"/> <input class = "Submit" type = "Reset "value =" cancel "/> </TD>
</Tr>
</Table>
</Form>
</Div>
</Div>
</Body>
</Html>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.