...

View Full Version : form question



devil_online
02-18-2004, 04:23 AM
How can we align the forms?;) Like making them in the same position in vertical?

The code I have is:



<html>
<body>


<form action="" method=""></form>
<p>Nome </p>
<input type=text /> <br>
Password
<input type=password /> <br>
Email
<input type=mail /> <br>
Equipa
<input type=equipa /> <br>
<br>
Submit Button
<input type=submit value="Submit" /> <br>
Reset Button
<input type=reset value="Reset" />


</body>
</html>

zoobie
02-18-2004, 05:53 AM
Depending on your layout, try:

<div style="margin:auto">
form
</div>

or

<div style="text-align:center">
form
</div>

devil_online
02-18-2004, 06:12 AM
well i want to give spaces after the words for the boxs became ate the same position..tanks

coothead
02-18-2004, 12:07 PM
Hi there devil_online,

The normal method is to put your
writing on the right hand side.....


<html>
<head>

<style type="text/css">
<!--
input.one{width:130px;}
input.two{width:62px;}
//-->
</style>

</head>
<body>

<div>
<form action="" method="">
<input class="one" type=text /> Nome <br />
<input class="one"type=password /> Password <br />
<input class="one"type=mail /> Email <br />
<input class="one"type=equipa /> Equipa <br /><br />
<input class="two"type=submit value="Submit" /> <input class="two"type=reset value="Reset" />
</form>
</div>

</body>
</html>


c:cool::cool:thead

devil_online
02-18-2004, 02:23 PM
ok..thanks..that's perfect

zoobie
02-18-2004, 04:06 PM
Uhh...You got 2 bad div's there and there's no such type called mail or equipa. You can name these if you wish.
We put the text to the left in the new world. :cool:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum