Lập trình , Thiết kế website, Auto Game Online

Thiết kế form theo tableless style 

0
0
(0)

  Thiết kế form theo tableless style 

    HTML tạo form không sử dụng table:

CSS Code:
 

label{ 
float: left;
width: 120px;
font-weight: bold;
 }

input, textarea{ 
width: 180px;
margin-bottom: 5px;
 }

textarea{ 
width: 250px;
height: 150px;
 }

.boxes{ 
width: 1em;
 }

#submitbutton{ 
margin-left: 120px;
margin-top: 5px;
width: 90px;
 }

br{ 
clear: left;
 }
input:focus, textarea:focus{ 
background-color: lightyellow;
 }

 

<form> 

<label for="user">Name</label> 
<input type="text" name="user" value="" /><br /> 

<label for="emailaddress">Email Address:</label> 
<input type="text" name="emailaddress" value="" /><br /> 

<label for="comments">Comments:</label> 
<textarea name="comments"></textarea><br /> 

<label for="terms">Agree to Terms?</label> 
<input type="checkbox" name="terms" class="boxes" /><br /> 

<input type="submit" name="submitbutton" id="submitbutton" value="Submit" /> 

</form>

 

Theo phpbasic

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Leave A Reply

Your email address will not be published.