How do I vertically and horizontally center an image when I do not know the size of it? I asked this question and someone suggested using a table. This isn\'t the first time
I end up doing the below. Tested with firefox, chrome, IE8 and opera. All good.
table.NAME { background: green; //test color text-align: center; vertical-align:middle; } table.NAME tr td { width: 150px; height: 150px; }
html
... 0 讨论(0) 查看其它10个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题