Css Centering thingsFrom WikiJava
This page shows few examples of how to center several entities in an HTML page using CSS.
the articleHow to position objects in css vertically and horizontally is something I always forget, in the following examples it's shown how to do the trick. centering a block<div style="display: block;margin-left: auto; margin-right: auto ">the div</div>centering textp { text-align: center } centering verticallydiv.box { vertical-align: middle }
|
