html - How can I center my posts and pages in blogger?
问题描述
I want to center my blog body (Posts and Pages) in blogger, its a custom template Link: www.temsah.ga
I tried adding this code below </b:skin>
:
<style>
#sidebar-atas1
{
display: none;
}
#main-wrapper
{
width: 100%; background:#fff;
}
</style>
It removed the sidebar successfully but it didn't center my body.
解决方案
我检查了你的网站。问题是您的模板为侧边栏提供了空间。将您的.portfolio-wrap
宽度设置为 100%。那应该解决它。
.portfolio-wrap {
width: 100%;
}
推荐阅读
- excel - MIN/MAX IF 返回 #VALUE
- c# - ASP.NET MVC 5 Web 应用程序实体框架的问题
- sugarcrm - 在 SuiteCRM REST API V8 中添加自定义方法和自定义端点
- go - 通过请求传递数据
- sql - 对齐两列中的内容 (SSRS)
- javascript - 如何从 ul 中搜索文本并实时显示结果?
- xamarin.forms - Xamarin.Forms 3.3 WKWebView 注入 javascript
- r - R group_by 并在最近的样本中总结
- python - 使用 sklearn 计算准确性时出错
- javascript - 为什么我的 html、css 和 javascript 内容在我的手机(不同平台)上向右移动?