我想從4個小時到垂直排列4個div。其中div也有2個div,裏面是圖像和段落。我可以安排4個div圖像div彼此相鄰,但段落div很難對齊。我使用使用html css垂直排列4個div垂直使用html css
代碼:
.left4 {
width: 215px;
float: left;
}
.center4 {
float: left;
width: 215px;
padding-right: 50px;
padding-left: 50px;
}
.center4.1 {
width: 215px;
float: right;
padding-left: 10px;
float: left;
}
.right4 {
width: 215px;
float: left;
padding-left: 40px;
}
.image4 {
height: 100px;
width: 215px;
border: 4px;
border-style: double;
border-color: #BABABA;
float: left;
margin-top: 10px;
}
.para1 {
height: 200px;
color: #BABABA;
}
<div class="4">
<div class="left4">
<div class="image4">
<img>
</div>
<div class="para1">
<h3 style="color:#BABABA">INDONECTETUS FACILIS</h3>
<p>Some wiki engines are open source, whereas others are proprietary. Some permit control over different functions (levels of access)</p>
<p align="right"><a href="#" style="color:orange;text-decoration:none">Read More >></a>
</p>
</div>
</div>
<div class="center4">
<div class="image4">
<img>
</div>
<div class="para1">
<h3 style="color:#BABABA">INDONECTETUS FACILIS</h3>
<p>Some wiki engines are open source, whereas others are proprietary. Some permit control over different functions (levels of access)</p>
<p align="right"><a href="#" style="color:orange;text-decoration:none">Read More >></a>
</p>
</div>
</div>
<div class="center4.1">
<div class="image4">
<img>
</div>
<div class="para1">
<p>Some wiki engines are open source, whereas others are proprietary. Some permit control over different functions (levels of access)</p>
<p align="right"><a href="#" style="color:orange;text-decoration:none">Read More >></a>
</p>
</div>
</div>
<div class="right4">
<div class="image4">
<img>
</div>
<div class="para1">
<h3 style="color:#BABABA">INDONECTETUS FACILIS</h3>
<p>Some wiki engines are open source, whereas others are proprietary. Some permit control over different functions (levels of access)</p>
</div>
</div>
您會後輸出的圖像? – Developer