如何在 Blogger 中将我的帖子和页面居中?
How can I center my posts and pages in blogger?
我想将我的博客 body(帖子和页面)置于 blogger 的中心,这是一个自定义模板
Link: www.temsah.ga
我尝试在下面添加这段代码 </b:skin>
:
<style>
#sidebar-atas1
{
display: none;
}
#main-wrapper
{
width: 100%; background:#fff;
}
</style>
它成功删除了侧边栏,但它没有居中我的body。
这里有一个 div,它应该包含您想要居中的所有 html
<div class="center">
/*Your html goes here*/
</div>
这是 css
.center {
margin: auto;
width: 95%;
padding: 10px;
}
希望对您有所帮助。
我查看了您的网站。问题是您的模板为侧边栏提供了 space..
将 .portfolio-wrap
宽度设置为 100%。这应该可以解决它。
.portfolio-wrap {
width: 100%;
}
我想将我的博客 body(帖子和页面)置于 blogger 的中心,这是一个自定义模板 Link: www.temsah.ga
我尝试在下面添加这段代码 </b:skin>
:
<style>
#sidebar-atas1
{
display: none;
}
#main-wrapper
{
width: 100%; background:#fff;
}
</style>
它成功删除了侧边栏,但它没有居中我的body。
这里有一个 div,它应该包含您想要居中的所有 html
<div class="center">
/*Your html goes here*/
</div>
这是 css
.center {
margin: auto;
width: 95%;
padding: 10px;
}
希望对您有所帮助。
我查看了您的网站。问题是您的模板为侧边栏提供了 space..
将 .portfolio-wrap
宽度设置为 100%。这应该可以解决它。
.portfolio-wrap {
width: 100%;
}