Home / web-development / CSS style How to center an object exactly in the center of a page

CSS style How to center an object exactly in the center of a page

If you want to center an object exactly in the center of a page then use the following css code. This will put your object / image exactly in the center of your page deciding the browser / window size.

 centered.gif

 

If you know what you are centering, then you may also use the following css style.