css - 更改文本位置 - BigCommerce 横幅

标签 css bigcommerce banner

使用 Chelsea Warm、BigCommerce 主题。我能够调整促销横幅周围的填充(见屏幕截图),使用以下代码添加到控制面板中的 Storefront>Footer Scripts:

`<style>
    .banner.rte {
    padding: 0px;
}
</style>`

但我需要文本在横幅中居中(它靠近底部,看起来不平衡)。有人知道对此有什么好的调整吗?

最好的,YT

Screenshot of header - link

最佳答案

好的,这是您需要放入 css 文件中的 css

.banner strong {
    position: relative;
    bottom: 22px;
}

它看起来像这样:

enter image description here

谢谢

关于css - 更改文本位置 - BigCommerce 横幅,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48268880/

相关文章:

javascript - 如何创建一个Javascript横幅在不同时间切换图片?

javascript - 组合框元素符号上升

html - 连续居中两个 col-sm-6 + 一些基本的 boostrap 混淆

html - 如何强制文本在下一行中断?

javascript - %% GLOBAL_CustomerGroupId %%-范围

bigcommerce - 在 Big Commerce 中使用 cart.php 将产品添加到购物车

html - Bootstrap 列将图像列高度设置为文本列高度

javascript - jQZoom : innerzoom issue

html - 随着浏览器窗口的增加,随时保持横幅响应

javascript - 滚动图片框