使用CSS将对象内部居中

时间:2014-03-07 18:56:33

标签: css css3 html

我正在尝试将标题下方的3个社交分享按钮置于其下方(同时保持响应)。任何帮助是极大的赞赏。

谢谢!

2 个答案:

答案 0 :(得分:2)

.OptIn-SubButton{display:inline-block;}并从中删除浮动规则。对于.optIn-top{text-align:center;}

答案 1 :(得分:0)

在按钮容器上指定widthmargin: 0 auto;

.optIn-top {
  /* [existing stuff] */
  width: 582px; /* Adjust this for smaller devices */
  margin: 0 auto;
}