It sounds like a very simple question but it is not for those who have worked more with TABLEs and not with DIVs. Of course, these tags are not specific to ASP.NET technology but its very essential to have knowledge about HTML tags while working on any web based applications, especially those which should support multiple browsers.
Whether to use TABLE or DIV is a separate topic of discussion but many agree that DIV has edge over the TABLE although its little difficult to work with it.
So, the question is, How to centre align a div tag? The answer is:
Looks simple right? but as you can observe there is no specific style tag related to alignment (you can use *align* but that will work only with specific browsers) and even putting alignment on body tags wont work for you.
You can go further and align the contents of the div to centre
by doing this: