텍스트는 2줄 이상 나오지 않으면서 1줄일땐 가운데 정렬 하는 법.... 절실+급합니다ㅠㅠ
구슬
텍스트 영역을 지정해줬는데 이게height 40px(대략 2줄) 이상이 되면 나오면 안됩니다.
그리고 1줄일때는 40px 안에서 가운데 정렬이 돼야 합니다.
그런데 하나(2줄 이상 텍스트 숨김)가 되면 다른 하나(1줄일때 가운데 정렬)가 안되고또 하나(1줄일때 가운데 정렬)가 되면 다른 하나(2줄 이상 텍스트 숨김)가 안됩니다.ㅠㅠ
말로 설명하니 어렵네요... 캡쳐랑 소스 같이 첨부하겠슴다ㅠㅠ#notice table tr td p {line-height:1.5; color:#418ad7; display:table-cell; vertical-align:middle; height:40px; overflow:hidden;}#notice table tr td p strong {display:inline-block; font-weight:normal; vertical-align:middle;}
#notice table tr td p {line-height:1.5; color:#418ad7; display:inline-block; vertical-align:middle; height:40px; overflow:hidden;}#notice table tr td p strong {display:table-cell; font-weight:normal; vertical-align:middle;}
height, v-align, overflow-hidden, display를 아무리p와 p strong 속성에 왔다갔다 하며 바꿔 넣어봐도 안되네요ㅠㅠ
고수님들 제발 도와주세요....ㅠㅠ