[ No Comments ] Posted on December 1, 2008 under Cascading Stylesheet (CSS)
A method of centering a fixed-width webpage that uses absolute position attribute to determine the exact coordinates of the outermost block element. You can center a webpage horizontally, vertically or both.
[ No Comments ] Posted on November 7, 2008 under Cascading Stylesheet (CSS)
One way of centering all the elements of a webpage in a fix-width layout is by setting the margin of the outermost block element to some value and auto. Without this configuration, the default setting for most browsers is to flush all elements to the left. Note that there is no such thing as float:center; and the text-align:center; does not work in divisions.