반응 형 블로그 사이트에 두 개의 열 레이아웃을 사용하고 있습니다. 왼쪽 열에는 열 너비를 채우기 위해 확대 된 이미지가 사용되고 오른쪽 열에는 블로그 게시물의 텍스트가 추출됩니다.단락 높이를 다른 div의 이미지 높이로 제한
오른쪽 열의 텍스트 단락 높이를 브라우저 너비가 축소되면서 왼쪽 열의 이미지 높이와 어떻게 일치 시킬지에 대한 아이디어는 있습니까?
오른쪽 div의 텍스트 오버 플로우를 처리하기 위해 text-overflow : 줄임표를 사용할 계획입니다.
아래 이미지의 예와 그 이후.
다음은 HTML의 및 CSS 나는 브라우저 윈도우의 크기가 감소함에 크기를 조정하기 위해 이미지의 크기를 설정하는 데 사용했습니다.
<div class="row blogpost">
<div class="sevencol">
<img src="img/greybox.png">
</div>
<div class="fourcol last>
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.
</p>
<a class="readMore" href="#">Read More...</a>
</div>
.blogpost .sevencol img {
zoom: 2;
margin: auto;
height: auto;
max-height: 100%;
width: auto;
max-width: 100%;
margin-top: 8px;
}
아직이 하나에 붙어 있습니다 - 아무도 도와 줄 수 있습니까? 아래 해결 방법 중 아무 것도 작동하지 않는 것 같습니다. – jasonbradberry