how to make a div to be center in html

Posted by Mac Taylor on Stack Overflow See other posts from Stack Overflow or by Mac Taylor
Published on 2010-04-22T13:27:02Z Indexed on 2010/04/22 13:33 UTC
Read the original article Hit count: 180

Filed under:
|

hey guys , one simple way to make an object center in html is using align='center' but belive its not working for a div

i used these methods ":

style='text-align:center'
style='left:50%';

even i use center tag

 <center>

but i couldnt make my target div to be center

what way u suggest ?!

© Stack Overflow or respective owner

Related posts about html

Related posts about css