html - 日期标题重叠帖子标题

标签 html css date templates blogger

所以我在 Blogger 上将日期标题移到了我的帖子标题下方,而在最新的帖子中,日期一直与标题重叠。如果我使用边距或填充,它会影响其他日期标题,所以我不太确定该怎么做。博客是here .这是我认为相关的唯一代码(其中 h3 是帖子标题):

h3 {
text-align: center !important;
}

h3 a{
color: #424242;
transition: 0.5s ease;
}

h3 a:hover {
color: #58c5d2;
}

.date-header {
text-align: center !important;
float: below;
}

.date-header span {
letter-spacing: 10px !important;
}

h2 {
text-align: center !important;
}

.date-posts {
margin-top: 40px;
}

h3 {
margin-bottom: -25px !important;
}

提前感谢您的帮助!

最佳答案

h3 样式设置为:

margin-bottom: 0;

由于负边距,日期被拉入标题。

关于html - 日期标题重叠帖子标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30656359/

相关文章:

javascript - 使用 Javascript 更改在按下回车键时激活哪个提交

html - 如何制作一个完全独立于所有 CSS 规则的下拉菜单?

MySQL - 选择月份差异

javascript - 循环嵌套 JavaScript 对象和数组时出现问题

css - 中心 2 DIV 在外部 DIV 内,文本对齐中心 + 显示内联 block

android - Android 中的方向停止

jquery - 访问 jQuery UI 模式对话框后面的文本区域

java - 将字符串转换为适当的数据类型

r - 为什么 R(在我的示例中)处理日期/日期时间非常慢?

html - CSS - 媒体查询 - 元素未正确堆叠/ float