저는 본질적으로 제목, 이미지, 설명 및 일부 소셜 미디어 버튼이 포함 된 div를 만들려고합니다. 웹 사이트에서 같은 div의 여러 인스턴스를 원합니다. 팀 페이지를 만나는 것과 같은 종류의 생성. 그러나, 나는 모든 것을 적절하게 배치하지는 않습니다. 모질라 파이어 폭스 에디터를 사용하면 이미지가 div에 들어 있지 않다는 것을 알게됩니다. 이것의 원인이 무엇일까요? 나는 그 (것)들 사이에서 공간을 가진 다른 사람을 차례 차례로 줄기 바란다. 웹 페이지의Img는 Div에 포함되어 있지 않습니다.
현재보기 :
는 는 사업부가 웹 페이지에 포함되지:
는HTML 코드는 :
<div>
<h2> DJ Name 1 </h2>
<img class="djimage" src="dj1.png" alt="Smiley face">
<p class="about">
Prevailed sincerity behaviour to so do principle mr. As departure at no propriety zealously my. On dear rent if girl view. First on smart there he sense. Earnestly enjoyment her you resources. Brother chamber ten old against. Mr be cottage so related minuter is. Delicate say and blessing ladyship exertion few margaret. Delight herself welcome against smiling its for. Suspected discovery by he affection household of principle perfectly he. <p>
</div>
<div>
<img class="djimage" src="dj1.png" alt="Smiley face">
<p class="about">
Prevailed sincerity behaviour to so do principle mr. As departure at no propriety zealously my. On dear rent if girl view. First on smart there he sense. Earnestly enjoyment her you resources. Brother chamber ten old against. Mr be cottage so related minuter is. Delicate say and blessing ladyship exertion few margaret. Delight herself welcome against smiling its for. Suspected discovery by he affection household of principle perfectly he. <p>
</div>
나는 사회 밖으로 촬영했습니다 미디어 버튼 섹션 beca 사용 나는이 시점에서 그것이 적절하다고 생각하지 않는다.
CSS 조각은 :
.djimage{
height:400px;
position: absolute;
margin-left:20%;
}
.about {
margin-left:50%;
text-align:left;
float: right;
width: 284px;
z-index: 1;
position: absolute;
font-size :14px;
font-family: Arial;
}
h2 {
margin-left:50%;
position: absolute;
text-align:left;
float:right;
}
이미지의 높이가 항상 400px 인 경우 div 높이를 400px로 설정하면됩니다. –