【发布时间】:2014-08-06 18:23:55
【问题描述】:
我还在学习 Sass、Compass 和 Susy,所以请多多包涵。我在将我的列表放在页脚中心时遇到了一点问题。它一直向左浮动。这是我正在使用的代码:
<footer>
<ul class="social">
<li><a href="#"><i class="fa fa-facebook-square fa-3x"></i></a></li>
<li><a href="#"><i class="fa fa-twitter-square fa-3x"></i></a</li>
<li><a href="#"><i class="fa fa-instagram fa-3x"></i></a></li>
</ul>
<div class="copyright">©2104 meylorodriguez.com<br />All Rights Reserved</div>
</footer>
这是我的 (s)CSS:
footer {
ul.social {
@include horizontal-list;
background: $skyblue;
padding: 4%;
li a {
color: $white;
}
}
.copyright {
padding: 4%;
text-align: center;
font-family: 'Arbutus Slab', serif;
font-size: small;
color: $gray;
}
}
我只需将三个社交媒体图标放在页脚的中心即可。
【问题讨论】:
-
你看过水平列表混合实际上做了什么吗?
标签: sass compass-sass