【问题标题】:my shopifiy store footer wont align in the center of my website我的 shopify 商店页脚不会在我的网站中心对齐
【发布时间】:2022-01-14 14:14:34
【问题描述】:

I need this to be vertical

it wont center

我需要照片中的所有内容都垂直对齐并居中,我试过了

#footer-logo { 边距:0 自动; }

#site-footer __rte rte p, em { align-text: center; }

【问题讨论】:

  • 欢迎来到 StackOverflow - 请edit 提出您的问题并添加minimal reproducible example 以加快故障排除速度 - 另请阅读我们的How to Ask 页面以获取有关如何改进此问题的提示
  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: css sass


【解决方案1】:

/* Model 1 */
.flx-center {
    display: flex;
    justify-content: center;
}
/* Model 2 */
.flx-center {
    text-align: center;
}
<div class="row-wrap">
    <div class="flx-center">block1</div>
    <div class="flx-center">block2</div>
    <div class="flx-center">block3</div>
</div>

【讨论】:

  • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
猜你喜欢
  • 1970-01-01
  • 2021-12-15
  • 2020-01-19
  • 1970-01-01
  • 1970-01-01
  • 2021-10-09
  • 2018-06-10
  • 2018-08-13
  • 1970-01-01
相关资源
最近更新 更多