DIV水平居中

时间:2013-09-14 10:46:58

标签: html css twitter-bootstrap

查看我博客的索引页http://lowcoupling.com/ 这是一个基于Twitter Bootstrap的tumblr博客 我无法看到如何在为每个帖子定义的行的第二列中水平居中谷歌加一个按钮。结果是,正如您所看到的,它似乎与帖子标题相距甚远。 我该怎么做?

2 个答案:

答案 0 :(得分:1)

I said on your previous question, 您需要将text-center类添加到中间列,问题就解决了。

<div style="height:70px;" class="col-2 col-lg-2 text-center">

答案 1 :(得分:0)

是否要将Google按钮与帖子标题对齐?

如果是,那么您可以尝试应用以下css代码:

.col-2 {padding:12px 15px;}

希望这适合你。