keyboard
09-04-2011, 08:09 AM
I have made a pretty basic form
<form method="post" action="contact.php">
<label for="name">Name:</label><input type="text" name="name" maxlenght="20"><br />
<label for="title">Title:</label><input type="text" name="title" maxlenght="20"><br /><br />
<label for="content">Message:</label> <br />
<textarea name="content" cols="40" rows="7"></textarea> <br />
<input type="submit" name="submit" value="submit">
</form>
and am using this css
label
{
width: 3em;
float: left;
text-align: right;
margin-right: 0.1em;
display: block
}
.submit input
{
margin-left: 4.5em;
}
It alligns the name and title but not the content box. I would like it to have them all lined up nicely. Any help?
<form method="post" action="contact.php">
<label for="name">Name:</label><input type="text" name="name" maxlenght="20"><br />
<label for="title">Title:</label><input type="text" name="title" maxlenght="20"><br /><br />
<label for="content">Message:</label> <br />
<textarea name="content" cols="40" rows="7"></textarea> <br />
<input type="submit" name="submit" value="submit">
</form>
and am using this css
label
{
width: 3em;
float: left;
text-align: right;
margin-right: 0.1em;
display: block
}
.submit input
{
margin-left: 4.5em;
}
It alligns the name and title but not the content box. I would like it to have them all lined up nicely. Any help?