How to position an input form at the center of a page?

css

Solution

Encapsulate it in a div with the following CSS attributes:

<div style="width:400px; margin-right:auto; margin-left:auto; border:1px solid #000;">
    <form action="helloWorld">
        <Some markup>
    </form>
</div>

Problem

I want to position a registration from at the center of a page. please tell me how should i do that

Original source