HTML- How to make the webpage center aligned in all the browsers

Some web pages will be displayed in the different browsers in different postions. Like in IE browser it will be displayed in the center, in some other browser like mozilla firefox it will be displayed in the left of the screen. To make all the pages to be displayed in center of the screen do the following steps.
1. Put a table with 100% width inside thetag.
2. In the td, set the align attribute to ‘center’
3. And keep all the contents inside it.

<table width=”100%”>
<td align=”center”>Contents to be displayed……………..</td>
Make the page aligned in the center of the screen

Contents to be displayed……………..


Back to top