html - 如何将 Squarespace 上的博客标题移到图片下方?

标签 html css squarespace

我正在尝试将标题移到图片下方。

这是我的 site

这是一个 example我想要实现的目标。

我知道我可以用 h1 标签包裹帖子的第一行,但我想知道是否有更优雅的方式。

最佳答案

您可以将 header Section 移动到 body entry-content 下面,但是如果您只是想用 CSS 来做(这不是一个好主意)但是它可以这样做:

只改变这些样式

.collection-type-blog article header
{
     width: 100%;
     text-align: center;
     position: absolute;
     bottom: 37px;
}

.collection-type-blog article .post 
{
     top: -63px;
     position: relative;
}

.collection-type-blog article .article-meta 
{
     top: 63px;
     position: relative;

 }

关于html - 如何将 Squarespace 上的博客标题移到图片下方?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12475024/

相关文章:

css - Squarespace 日历颜色更改的自定义 CSS

javascript - JS 无法在 Squarespace 网站上运行

javascript - 将参数传递给 BLOB 对象 URL

html - 如何防止复选框/单选按钮下的长文本标签换行?

css - Vuejs 2.5+ Webpack 4+ 不加载 CSS 文件

html - 如何使 contenteditable ='false' div 具有与 contenteditable ='true' 相同的高度?

javascript - 如何防止HTML导航栏在移动设备上崩溃?

html - Angular 最佳实践 : for reusability, 制作新的 CSS 类或新组件?

javascript - textarea resize 在 IE 中不起作用,我想在 IE 中调整大小,它在 chrome 中工作

html - XAMPP:访问根目录子目录中的html页面