0
我需要在CMS的页面模板中制作标题流体我已经构建了下面的代码。CSS流体标题
<div class="content-output-title-container" id="page-title">
<h1 class="content-output-title">{page_name}</h1>
</div>
CSS:
.content-output-title-container {
height: 50px;
margin-top: 0!important;
padding-top: 42px;
z-index: 4!important;
width: 100% !important;
background: #FFF;
display: inline-block;
}
.content-output-title {
font-weight: 400;
text-transform: uppercase;
padding-left: 10px;
padding-right: 10px;
float: left;
position: relative;
min-width: 280px;
border-left-width: 20px;
border-left-color: #00AFA9;
border-left-style: solid;
border-right-width: 20000px;
border-right-color: #64405F;
border-right-style: solid;
display: inline-block;
}
正如你可以看到我有信息在需要持续标题文本的任何长度两边的边框。
的问题是,当标题文字是一样的东西
边境的行为和标题在容器全宽但是如果标题是一样的东西
有没有在CSS中的一种方法,我可以使更长的标题流程,而不是与目前的边界包装?
感谢哥们,真棒! +1并获得答案 –