CSS - Change the image margin

It's easy to change the margin around images. Check out these examples.

This is what the images looks like without the margin code.
pic pic pic pic

And with the margin code.
picpicpicpic


1. Here's what your image code should look like.

<img src="your_picture_adress.jpg" alt="pic" class="margin" />
<img src="your_picture_adress.jpg" alt="pic" class="margin" />
<img src="your_picture_adress.jpg" alt="pic" class="margin" />
<img src="your_picture_adress.jpg" alt="pic" class="margin" />


2. And this is the code you put in your css document.

.margin { margin-left: 0px; margin-bottom: 0px; margin-right: 10px; margin-top: 0px; }