【问题标题】:How do I position this button in center?如何将此按钮放置在中心?
【发布时间】:2019-03-11 19:16:56
【问题描述】:

如何定位此按钮

this page的中心?

【问题讨论】:

  • 您还应该添加相关的html和css代码,仅图像不足以进行评估..
  • 使用 align:center;
  • 我相信你希望它在 praktijkmanagers 下面使用 text-align:center 在父 div 上,或者将它包含在
    标签内

标签: php html css wordpress alignment


【解决方案1】:

你的css中的这条规则是负责任的:

.thim-sc-button.home-6-top {
   text-align:left; 
   display:inline-block; 
   margin-right:18px;
}

您可以从 button 元素中删除 home-6-top 类以使其居中,或者仅删除 text-aligndisplay 属性以保留边距。

【讨论】:

    【解决方案2】:

    将此css样式赋予包含按钮的div元素

    .container {
      display: flex;
      justify-content: center;
    }
    

    我在你的网站上试过,看起来像这样:

    【讨论】:

      【解决方案3】:

      托尔, 欢迎使用 Stackoverflow。

      你可以试试这个

      【讨论】:

        猜你喜欢
        • 2016-04-26
        • 1970-01-01
        • 1970-01-01
        • 2021-01-21
        • 2014-05-20
        • 2017-08-15
        • 2021-07-04
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多