아래 사진으로 표시 할 네 개의 이미지를 정렬하려고했습니다. 그러나 나는 각 행 다음에 공백을 가져왔다. 어떻게 제거 할 수 있습니까?HTML에서 4 개의 이미지를 2 * 2로 정렬하는 방법은 무엇입니까?
또한 네 개의 이미지가 만나는 내가 중간에 예를 들어 이미지의 작은 썸네일을 추가 할 수있는 방법은 무엇입니까?
이와 함께 이미지 위에 자막을 추가하려고합니다. 현재 이미지 아래에 표시됩니다. 이미지 위에 어떻게 추가 할 수 있습니까?
<!DOCTYPE html>
<html>
<body alink="ff0000" bgcolor="ffffff" link="0000ff" text="000000" vlink="800080">
<div>
<div class="transbox" style="width: 50%; height=50%; float: left;">
<img src="https://s22.postimg.org/61txkvgch/Venture_Capital.jpg" width="100%" />
<div style="position: relative; top:50%; left:45%; width:200px; height:25px">
<center>
<font color="Black" size="+2">Looking Into The Future</font>
</center>
</div>
<img src="https://s11.postimg.org/zf842w1mb/Real_Estate.jpg" width="100%" />
<div style=" text-align: center; vertical-align: middle;">
<center>
<font color="Black" size="+2">correct one</font>
</center>
</div>
</div>
</div>
<div>
<div class="transbox" style="width: 50%; height=50%; float: right;">
<img src="https://s18.postimg.org/acomst9gp/image.jpg" width="100%" />
<div style="position: relative; top:50%; left:45%; width:200px; height:25px">
<center>
<font color="Black" size="+2">Looking Into The Future</font>
</center>
</div>
<img src="https://s13.postimg.org/8yima8xvb/Construction.jpg" width="100%" />
<div style="position: relative; top:50%; left:45%; width:200px; height:25px">
<center>
<font color="Black" size="+2">Looking Into The Future</font>
</center>
</div>
</div>
</div>
</div></body>
</html>
JSFiddle 링크 :
https://jsfiddle.net/8bL4qqr8/
사용 영웅 이미지를 찾고 있던 것입니다. – Owner