Table+css and xhtml+css Implement the same login box (code snippet)

Source: Internet
Author: User

1, downloaded from the Internet a good Login box style (table with CSS layout);
2, the beginner XHTML, oneself rewrite a bit, hope useful
3. How can I not upload it?
? 1. [Code]XHTML_CSS Combination
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http:// ">
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title>form Form-XHTML_CSS Presentation </title>
<style type= "Text/css" >

Body,h2,h3,p,img,dl,dd,ul, Ol,li{margin:0;padding:0;border:none;font-size:12px;color: #666}
body{margin:0 Auto;font-family:verdana, Tahoma, Sans-serif;}
A{text-decoration:none; color: #666}
a:hover{color: #F60;}

. login {width:180px; padding:15px 10px;}
. login fieldset{border:0; margin:0px; padding:0px;}
. Login legend{Display:none}
. login_title,.login_item,.login_footer{margin-top:8px;}
. login_title P,.login_item. Input_user,.login_item. Input_pwd,.login_footer. login_btn{margin-top:6px;}

. login_title h3{height:20px; padding-top:5px; font-size:10px;font-weight:bold; Background-color: #F4F4F4}
. login_title img{width:16px; height:16px;}
. Login_title p{font-size:12px;color: #666666}

. Login_item label{Display:block;}
. Login_item input{background: #FFFFFF; border:1px solid #CCCCCC; color: #000000; font-size:0.95em;}
. Login_item. Input_user{background-image:url (images/username.gif); background-position:1px 1px;background-repeat: no-repeat;padding-left:20px;height:20px; font-size:12px;}
. Login_item. Input_pwd{background-image:url (images/password.gif); background-position:1px 1px;background-repeat: no-repeat;padding-left:20px;height:20px; font-size:12px;}

. Login_footer P{font-size:10px;color: #F60}
. Login_footer. login_btn{width:85px;}

<div class= "Login" >

<form id= "" Name= "" action= "" method= "POST" >
<legend> Login </legend>
<div class= "Login_title" >
<p> Please enter the login user and password </P>
</div> Summary
<div class= "Login_item" >
<label for= "Form_user" > User name:</label>
<input type= "text" class= "Input_user" name= "Form_user" id= "Form_user" value= "" tabindex= "1"/>
<div class= "Login_item" >
<label for= "Form_pwd" > Secret &nbsp;&nbsp; code:</label>
<input type= "text" class= "input_pwd" name= "Form_pwd" id= "form_pwd" value= "" tabindex= "2"/>
<div class= "Login_footer" >
<p> forgot Password? </p>
<input type= "Submit" class= "login_btn" value= "Logging &nbsp;&nbsp; recording" tabindex= "3"/>




Table+css and xhtml+css Implement the same login box (code snippet)

Related Article

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: 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.