• Hi Guys

    I am just adding a banner ad to my right side bar..

    I want it in the middle of my sidebar, but it ends up far left..

    How do I get my banner central in the sidebar?

    Appreciate it

    Marcus

Viewing 5 replies - 1 through 5 (of 5 total)
  • Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of specific help.

    Thread Starter marcuspassey

    (@marcuspassey)

    Hi

    Oh yeah

    my site is

    https://nononsensemusclebuildingreviewsite.com/

    see the skinny banner on the right…

    How do I get that in the middle of the sidebar?

    Cheers

    marcus

    Thread Starter marcuspassey

    (@marcuspassey)

    Anyone able to help

    Marcus

    Marcus,

    This is an HTML, rather than a WordPress, question.

    Your code for the narrow banner ad reads:

    <p><a href='https://XXXXXX.nononsense.hop.clickbank.net'><img src='https://www.vincedelmontefitness.com/affiliates/banners/120_240/120x240_1.jpg' border='100'></a></p>

    You have to align the image to the center of the column. Try this:

    border='100' align='center'>

    you could add a class and use css. You may already have a class in your css to center. But here’s an example.

    <p><a href='https://XXXXXX.nononsense.hop.clickbank.net'><img src='https://www.vincedelmontefitness.com/affiliates/banners/120_240/120x240_1.jpg' border='100' class="center"></a></p>

    and in style.css

    .center {
          margin: 0 auto;
          }

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding a banner ad to my sidebar, how do I get the banner in the middle?’ is closed to new replies.