+ 1
How to add space between images in html with ex
5 Answers
+ 4
U can group them then use padding
+ 2
Use margin style rule to increase the space around the images
+ 1
Thx
0
Ex plz
0
HTML
<div class="images">
<div id="img1" class="pic">
<img src="" alt=""/>
</div>
<div id="img2" class="pic">
<img src="" alt=""/>
</div>
<div id="img3 class="pic">
<img src="" alt=""/>
</div>
</div>
CSS
<style>
.pic{
margin: 20px;
}
</style>
You can choose to put margin all round the images or simply use, margin-left or right, or top, or bottom. It depends on where you want the space.