내가 원하는을하는 경우 .elements의 텍스트 (마지막에 html보기)가 너무 길어서 회색 영역의 두 줄에 구분됩니다.
"Hello world! Hello StackOverFlow!" 분리되어야하는 텍스트입니다.
도움을 주셔서 감사합니다. 당신이 뭔가 누락, 또는 내가 충분히 자신을 설명하지 않았다고 생각하는 경우
, 그냥 당신이 알고 싶은 당신을 제공하기 위해 최선을 다할 것입니다 문의 **)
HTML
<div class="filter">
<div class="left"></div>
<div class="center">
<div class="arrow">Search Filter Research Text Test</div>
<div class="head"></div>
<div class="element"><div>Hello World! Hello StackOverFlow!</div></div>
</div>
<div class="right"></div>
</div>
.element
에 다음 CSS를 추가
CSS
.table .filter {
height: 44px;
position: relative;
}
.table .filter div {
height: 44px;
}
.table .filter .left {
width: 7px;
position: absolute;
left: 0;
background: url('../images/Tableau/filtre/gauche.png') no-repeat;
}
.table .filter .right {
width: 7px;
position: absolute;
right: 0;
background: url('../images/Tableau/filtre/droit.png') no-repeat;
}
.table .filter .center {
background: transparent url('../images/Tableau/filtre/centre.png') repeat-x;
left: 7px;
right: 7px;
position: absolute;
}
.table .filter .center>div {
float: left;
}
.table .filter .center .arrow {
background: url('../images/Tableau/filtre/fleche-centre.png') repeat-x;
}
.table .filter .center .head {
width: 13px;
background: url('../images/Tableau/filtre/fleche.png') no-repeat;
}
.table .filter .center .element {
text-align: center;
margin: auto;
}
.table .filter .center .element>div {
width: 100%;
text-align: center;
}
이미지와 코드가 일치하지 않습니다. 부분적으로 당신이 프랑스어로 코드를 작성했기 때문입니다. 영어 기반 언어를 사용하고 주로 영어 사이트에 게시하는 경우 ... plesae는 영어를 사용합니다. –
@Kolink done ... – Hipny
http://jsfiddle.net/에서 예제를 만들 수 있습니까? – sandeep