나는 간단한 부동산 웹 사이트를 만들고 현재 목록 페이지를 만들고 있습니다. 나는 here과 매우 비슷한 제품을 원합니다. skeleton framework을 사용하고 있기 때문에 코드에서 아이디어를 얻을 수 없습니다. 내 current progress and code 또는 그 이하입니다.
두 개의 요소를 연결하여 응답 값을 유지하십시오.
두 요소; 속성과 본문의 사진이 떨어져 있습니다 (중간에 틈이 있습니다).
또한 브라우저의 크기를 조정하면 목록이 세로 직사각형으로 렌더링되지 않습니다.
내 생 질문은 다음과 같습니다
1) 어떻게 이미지와 inbetween 공백이 없도록 본문 텍스트를 연결하려면?
2) 본문 텍스트가 사진 아래로 접힐 필요가있을 때 본문 텍스트와 이미지의 너비를 어떻게 설정합니까?
html로
<div class="five columns image">
<a href="Properties/9-Walter-Street-Claremont/Walter-Street.html"><img src="Properties/9-Walter-Street-Claremont/Listing.jpg" alt="Listing"></a>
</div>
<div class="ten columns body-info">
<h2><a href="Properties/9-Walter-Street-Claremont/Walter-Street.html">Walter Street <span>$2500/wk</span></a></h2>
<h3>Claremont, 6010</h3>
<p>Lorem Ipsum</p>
<div class="info">
<ul>
<li><img src="img/bedrooms.png"> 5</li>
<li><img src="img/bathrooms.png"> 3</li>
</ul>
</div>
</div>
CSS는 (브라우저 또는 장치의 크기를 변경하는 경우)
.body-info {
background-color: #fff;
height: 200px;
-webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
-moz-box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
margin-bottom: 30px;
padding: 0px;
}
.image a img:hover {
background-color: rgba(0,0,0,0.5);
background-image: url("img/eye.png");
background-position: center center;
background-repeat: no-repeat;
}
.body-info h2 a {
transition: color 0.2s ease-in;
-webkit-transition: color 0.2s ease-in;
color: #428f9c;
font-size: 23px;
font-weight: normal;
}
.image {
width: 270px;
float: left;
}
.body-info {
margin-left: 280px;
}
.body-info h2 a:hover {
color: #0b7587;
}
.body-info span {
margin-right: 15px;
color: #444;
}
.body-info p {
color: #777;
font-size: 16px;
}
.body-info ul {
list-style: none;
}
.body-info ul li {
color: #777;
}
사전에 감사합니다!
정말 고마워요! :) –