0

I have these two tables in the blog_Sec div of my website's footer, which has 2 alignment problems:

1) The tables have headings, and these headings are not in center relative to the table. They appear slightly to the right.

2) The tables themselves are not in the center. They are left aligned currently. I want them to be center aligned within blog_Sec div.

JSFiddle code: http://jsfiddle.net/ahmadka/ukcS8/

JSFiddle full page preview: http://jsfiddle.net/ahmadka/ukcS8/show/

Using display: table-row, I can solve the first problem, but then it removes the spacing between the heading and the table which doesn't look nice. So not really usable.

enter image description here

4

2 回答 2

0

尝试这个

http://jsfiddle.net/ukcS8/11/

问题#2 添加

table align="center"
于 2013-07-04T07:51:17.720 回答
0

你应该使用这个 CSS 代码。

.yourdiv {
    left: 50%;
    right: 50%;
    }
于 2013-07-04T08:17:51.943 回答