Home > Article > Web Front-end > Use CSS to implement form layout_CSS/HTML
Source: http://blog.donews.com/dodo/archive/2005/06/18/434979.aspx
When designing a Form in TABLE layout, two tds are generally used for layout. If you don’t use a table, how to do it with CSS? Take a look at the following code
label{
float: left;
width: 80px;
}
form{margin:0px}
input{
width: 180px;
border:1px solid #808080
}
textarea{
width: 250px;
height: 150px;
}
#sbutton{
margin-left: 80px;
margin-top: 5px;
width:80px;
}
br{
clear: left;
}