【发布时间】:2016-09-05 21:35:57
【问题描述】:
我对 CSS 和 HTML 的世界还很陌生,所以我很抱歉。
我无法让我的社交媒体图标在我的网站底部居中。 他们坐在底部沉重而不是在页脚的中间。 附件是问题的屏幕截图及其背后的代码。
代码片段:
.page-footer {
background-color: #F06D71;
padding: 1em;
}
<footer class="page-footer">
<ul>
<img class="responsive-img" src="http://placehold.it/50x50">
<img class="responsive-img" src="http://placehold.it/50x50">
<img class="responsive-img" src="http://placehold.it/50x50">
</ul>
</footer>
我尝试在样式表中添加“padding-bottom”,但图标只是变得更小而不是向上移动几个像素。
我应该研究任何建议或任何条款?
问候
【问题讨论】:
-
"align: center" 不适合你?
-
已弃用,您使用 tex-align:center;现在
-
你应该在你的问题中写你的代码,而不是它的图像。
-
我尝试帮助您创建代码 sn-p,请使用您的 css 修改它以使其尽可能精确。