Add space between two ads


I'm adding two ads to the top banner with the code below, please help me add the space 2px between two ads.

<a href="" target="_blank"><img src="" alt="" title="cebit" /></a>

<a href="" target="_blank"><img src="" alt="" title="cebit" /></a>

My site.

  • Bojan Radonic
    • Head of Support

    Hey there Khanh,

    How are you doing today?

    To add some space between those two images you can add a margin to the first link image by adding the following CSS code:

    .header-banner a:first-child img {
        margin-right: 2px;

    This will target the image in the first link in element that has class header-banner. I've managed to target it with first child in the selector but in case you want to do some specific styling for each of those images in the future consider adding class or ID for each of them so they can get target more easily.

    Hope this helps :slight_smile:


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.