/ Published in: CSS

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
HTML: <div class="parent"> <div class="child"> Content here </div> </div> CSS: .parent{ position:fixed; bottom:0px; width:100%; //width should be 100% } .child{ width:100px; //min width should give to center the div. margin:0px auto; //here it will make center }
URL: http://htmlcsstutorials.blogspot.com/2009/08/center-align-div-horizontally-and.html
Comments
