首页 > 解决方案 > 是否可以在 HTML/CSS 中将页脚框居中?

问题描述

我已经创建了一个 HTML/CSS 网站,但是我遇到了一个问题,我不知道如何解决它。所以,我希望页脚根据网站的中心居中,但我不知道如何制作。有人可以帮助我吗?

文件:https ://github.com/TrainyBIG/help 网站:https ://trainybig.github.io/help/

标签: htmlcss

解决方案


#footer {
    margin: 0px auto;
    padding-bottom: 60px;
    width: 850px;
}

#footer .social {
    float: left;
}

#footer .social ul {
    list-style: none;
    margin: 10px 0px 0px;
    padding: 0px;
}

#footer .social li {
    float: left;
    margin-right: 5px;
}

#footer .social img {
    border: 0px;
}

#footer .copyright {
    color: #fff;
    float: left;
    line-height: 32px;
    margin-left: 200px;
    margin-top: 10px;
    text-align: center;
}

#footer .resize {
    float: right;
    width: 400px;
}


推荐阅读