How align the input textbox center of the page?

Sangeetha Mani
Posted by Sangeetha Mani under CSS 3 category on | Points: 40 | Views : 555
My scenario is
<div>
<p class="a"><input id="a1" type="text" name="aa"/>
</p>
<input id="b1" type="text" name="bb">
</div>

It should align that two input textbox together in center of the page

that code should work for both portarait and landscape ?

Please post your answer as soon as possible...

Thanks for advance.

Comments or Responses

Posted by: Goud.Kv on: 7/10/2014 Level:Gold | Status: [Member] [MVP] | Points: 10
Hi., Please use like below,

<div style="text-align:center;"> 
<p class="a">
<input id="a1" type="text" name="aa"/>
</p>
<input id="b1" type="text" name="bb">
</div>

Login to post response