An Interest In:
Web News this Week
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
March 11, 2011 01:53 am GMT
Original Link: http://css-tricks.com/wolf-in-sheeps-clothing/
Wolf in Sheep'sClothing
Roger Johansson has a neat quick-tip style article on centering page content both vertically and horizontally by making the html elementdisplay: 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 than using…
Original Link: http://css-tricks.com/wolf-in-sheeps-clothing/
Share this article:
Tweet
View Full Article