here is my css code.now i have given input field as
.form input
{
width:10em;
}
now the password field is ok but my submit button size is also increased.as shown below..
but i want my submit button size as it is i.e., size of submit button only.
it should not take extra space.....
Code:
*
{
margin:0;
padding:0;
}
body
{
font:12px Verdana, Arial, Helvetica, sans-serif;
color:black;
}
#wrapper
{
width:700px;
margin:50px auto;
}
.form
{
float:left;
padding:10px 10px 10px 10px;
background:lightblue;
border:2px solid white;
}
.form label
{
position:relative;
float:left;
width:130px;
/*padding:10px 10px 0 0; */
padding:10px 10px 0px 5px;
font-weight:bold;
/*text-align:right; */
clear:left;
}
.form label span
{
position:absolute;
top:0;
right:5px;
color:black;
}
.form span
{
float:left;
margin-top:1em;
margin-left:0.5em;
color:red;
}
.form select
{
float:left;
width:146px;
margin-top:10px;
}
.form input
{
width:10em;
float:left;
margin-top:10px;
}
.form .submit
{
/* position:relative;
left:50%; for center */
clear:both;
}
Bookmarks