Add space between two ads

Hello,

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="http://www.technologymag.net/tag/emo-hannover/" target="_blank"><img src="http://www.technologymag.net/wp-content/uploads/2016/03/emo_banner_top.jpg" alt="" title="cebit" /></a>

<a href="http://www.technologymag.net/tag/hannover-messe/" target="_blank"><img src="http://www.technologymag.net/wp-content/uploads/2016/03/hannovermesse-banner.png" alt="" title="cebit" /></a>

My site.

  • Bojan Radonic

    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:

    Cheers,
    Bojan

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.