Thiết kế form theo tableless style  0 (0)

Thiết kế form theo tableless style  0 (0)

Thiết kế form theo tableless style  0 (0)

Learn more »

  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


Lượt xem : 232

Integrations
Users

Share Profile

Anyone at KeenThemes can view
Anyone with link can edit

Give Award

Anyone at KeenThemes can view
Anyone with link can edit

Report User

Let us know why you’re reporing this person
Don't worry, your report is completely anonymous; the person you're
reporting will not be informed that you've submitted it