An Interest In:
Web News this Week
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
- April 12, 2024
- April 11, 2024
- April 10, 2024
March 11, 2011 01:53 am GMT
Original Link: http://css-tricks.com/wolf-in-sheeps-clothing/
Wolf in Sheep's Clothing
Roger Johansson has a neat quick-tip style article on centering page content both vertically and horizontally by making the html element display: table;
and the body element display: table-cell;
with vertical-align: middle;
. See the full code to make it happen in the article.
I'm down with that. Works in all modern browsers and IE 8 plus.
I disagree on this though:
I've seen people saying that using these CSS properties to create "CSS tables" is no better
…
Original Link: http://css-tricks.com/wolf-in-sheeps-clothing/
Share this article:
Tweet
View Full Article