保证金不适用于特定div内容

时间:2016-09-19 08:37:43

标签: css magento

您好我是设计新手而且我想设置div序列但是当我给特定div提供保证金时它适用于所有div我使用的是唯一类但问题是相同的

here is link of site

enter image description here

我希望调整特快优惠,如快递

1 个答案:

答案 0 :(得分:2)

您可以在css中为.footer-top-inner.container-width添加另一个属性(display:flex;)(包含块的DIV)

<div class="footer-top-inner container-width">
    //your footerblocks
</div>

CSS:

.footer-top-inner.container-width{
    display: flex;
    //if that doesn't work, you might want to use display: flex !important;
}

但最好的方法是在此容器中添加另一个类,以防止我们覆盖您的网站:)

编辑:为了让您的网站看起来不错,您可以在display:flex;

中添加另一个属性
justify-content: space-between;

这应该会自动对齐您的页脚块