Kamis, 03 September 2009

Center all contents of website - cetering a website

Hi guys,
Generally we require that all the contents of our website should be centered to display the website properly.
For this we can make use of this code so that your website will be in the center of the browser, doesnt matter what is the resolution.


We will create a div with id "outer-div" in the body tag of our webpage.









Now we will apply a CSS styling to the "outer-div" div.









The full code to test is here



Tidak ada komentar:

Posting Komentar