은 몇 가지 문제와 동일한 내용으로 8 개 부동 블록 거리로 만들려면 :잘 작동 오버 플로우 블록 (를)
- 나는 패딩을 사용하는 경우 : 그것을 "경계"를 만들 10px에 대한 sideblock의 .inner을 내가 블록에 커서를 놓으면
- 좋은 (이 disapeared처럼 보일 것 패딩 - 아래) 작동하지 않습니다 - 그것은 상단에 출연 할 수 없으며, othes는
을 차단 움직이지 어떻게 블록 작업을한다 잘? HTML :
<div class="sideblock"><div class="style-menu"><div class="inner">
Everything around you that you call life was made up by people that were no smarter than you, and you can change it, you can influence it, you can build your own things that other people can use.</div></div></div>
CSS : 여기
.sideblock {
width: 220px;
height: 80px;
overflow: hidden;
margin: 10px;
float: left;
}
.sideblock .inner {
background: #ffffff;
padding: 10px;}
.sideblock .style-menu {
padding: 3px;
background: #157ba1;
background: linear-gradient(to right, #157ba1 0%,#5fa31c 100%);}
.sideblock:hover {
box-shadow: 0px 0px 5px #000;
overflow: visible;
height: auto;}
내 코드입니다 - 지원
에 대한
http://jsfiddle.net/2HqZV/1/
들으
그것은 더 나은 외모 :이 문제를 해결하려면 당신은
min-height
이 요소를 제공 할 수 있습니다. 고맙습니다. 하지만 블록 위에 콘텐츠를 표시해야합니다. 이미지를 설명하기 위해 이미지를 추가했습니다. –어려움,하지만 재미있는 ^^ 내 업데이트를 확인하십시오. – nkmol
Yahoo! 간단한 작업 :) 지금 당신의 솔루션을 구현하기 시작했습니다. 대단히 감사합니다! –