【发布时间】:2017-12-30 23:18:18
【问题描述】:
我目前正在设置我的博客,但我无法按照我计划的方式格式化标题。
Here is my site。如您所见,它们是标题两侧的额外空间。我的目标是删除空间,使花卉图案与内容框或您所称的任何内容齐平。
我已经多次检查了我的主题的 CSS,并更改了所有可能与标题图像相关的内容和任何内容的边距、宽度和填充,但运气为零。他们是我缺少的东西吗?
我的博客是通过 Wordpress 托管的,而我的父主题来自 Genesis Framework。
这是标题图片的 CSS:
/*
Site Header
--------------------------------------------- */
.audrie .site-header {
background-position: center;
padding:0px 0;
width:100%;
}
/* Title Area
--------------------------------------------- */
.title-area {
padding: 0px 0;
margin-bottom: 30px;
margin-top: 20px;
}
.title-area h1 {
margin: 0 auto;
}
.title-area p {
margin: 0;
}
.header-image .title-area {
padding: 0;
width:100%;
}
.site-title,
.site-title a {
font-size: 64px;
font-weight: 600;
letter-spacing: 8px;
line-height: 1.2;
text-align: center;
text-decoration: none;
text-transform: uppercase;
overflow-wrap: break-word;
}
.site-title a,
.site-title a:hover {
color: #747474;
}
.site-description {
color: #808080;
font-family: Lato;
font-size: 13px;
font-weight: 300;
letter-spacing: .5px;
margin: 0;
text-align: center;
text-transform: none;
}
/* Full width header, no widgets */
.header-full-width .title-area,
.header-full-width .site-title {
width: 100%;
}
.header-image .site-description,
.header-image .site-title a {
display: block;
text-indent: -9999px;
}
/* Logo, hide text */
.header-image .site-header {
background-position: center !important;
background-size: 1000px 200px !important;
padding: 0;
margin-top:-90px;
padding-bottom:30px;
}
.header-image .site-title a {
float: none;
min-height: 200px;
width: 100%;
}
/* Widget Area
--------------------------------------------- */
.site-header .widget-area {
float: right;
text-align: right;
width: 720px;
}
.header-image .site-header .widget-area {
padding: 0px 0;
}
.site-header .search-form {
float: right;
margin-top: 22px;
}
我们将不胜感激任何正确方向的帮助或指导!谢谢!
【问题讨论】:
-
您希望花卉图像与粉色条的宽度相匹配,还是填充整个白色背景?
-
为了匹配粉色条,谢谢!