Welcome, Guest! Registration


Friday, 2019-02-22
Main » 2012 » May » 22 » div align center challenge
3:32 AM
div align center challenge

Wanted a clean CSS solution for centering DIV HTML content, something to replace

DIV align="center"

Found somewhere a solution, which looked easy enough:

.center {margin-left:auto;margin-right:auto;}

Good write-ups: http://css-discuss.incutio.com/wiki/Centering_Block_Element, http://www.w3schools.com/css/css_align.asp

... on vertical alignment - Understanding vertical-align, or "How (Not) To Vertically Center Content"

Views: 909 | Added by: loc2log | Tags: css, html | Rating: 0.0/0
Total comments: 1
0 Spam
1 PeadaYHadyCek  
Sed iaculis odio eros. felis rhoncus magna eget iaculis at molestie id erat.

Only registered users can add comments.
[ Registration | Login ]