Forums

Centre alighnt ad in header + surrounding colour (11 posts)

  1. oderuyter
    Member
    Posted 3 months ago #

    Hi All - Using "Simple Ad Manager" to add adverts on my site, please can you assist on 2 matters

    1. Need to centre align the advert
    2. Need to make the space around the advert black

    The URL is http://www.dblcoverage.com/

    Thanks

  2. Harry
    Member
    Posted 3 months ago #

    This is the blackant labs ad? Yes?

  3. Harry
    Member
    Posted 3 months ago #

    There is currently a div in the code with no class/id.

    <div>
    <a href="http://blackantlabs.com" target="_blank"><img src="http://www.dblcoverage.com/wp-content/plugins/sam-images/banner1.png"></a>
    </div>

    If you give this an id of says "advert", so it becomes

    <div id="advert">
    ...
    </div>

    The CSS for this would be something like:

    #advert { background: #000; }
    
    #advert a {
      margin: 0 auto;
      width: 604px;
      display: block;
    }

    Image of what it should look like here: http://i.imgur.com/9zjRU.png

  4. oderuyter
    Member
    Posted 3 months ago #

    I can't do it like that as its a ad rotator script that puts the image there

  5. Harry
    Member
    Posted 3 months ago #

    what ad rotator plugin are you using?

    Never mind, sorry, you said it in the first post.

  6. oderuyter
    Member
    Posted 3 months ago #

    Simple ad manager - wordpress plugin

  7. Harry
    Member
    Posted 3 months ago #

    At the very bottom of ad in the backend, you can add Code Before and Code After.

    Try adding...

    <div id="advert"> for Code Before.

    </div> for Code After.

    Then add the CSS above.

  8. oderuyter
    Member
    Posted 3 months ago #

    OK I added those, and tried with the CSS, but nothing seems to be happening... bit miffed! But I'm not all that confident with CSS

  9. Harry
    Member
    Posted 3 months ago #

    Well I can't see them around the ads, so are you sure you've added them in the right place?

  10. oderuyter
    Member
    Posted 3 months ago #

    Hmm odd - I def put in the backend, where do I manually add them?

    also I have put a black image in and there is a thin line visable, where can I remove this?

  11. Harry
    Member
    Posted 3 months ago #

    Unfortunately I can't really help any further. I'm unfamiliar with the theme and as I can't see your site it's very difficult to guess what the problem is.

    Good luck finding a solution.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.