WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Header Plugin Alignment (3 posts)

  1. sbt86
    Member
    Posted 1 year ago #

    Hey,

    First off, thanks for your time, secondly, I realize this topic has been posted numerous times, but nonetheless, I'm still having an alignment issue. I have a plugin/ad at the top of my page (www.thenewburner.com) that's currently aligned left and I'd like it centered but haven't the slightest idea of how to make that happen.

    Thanks for you help.

  2. Ryan Sullivan
    Member
    Posted 1 year ago #

    Hey sbt86,

    You need to add div tags around your ad code and then add margin:0 auto; to your css file.

    HTML Example

    <div id="header-ad">
    <iframe></iframe>
    </div>

    Then add the following to your css file

    #header-ad {
         margin:0 auto;
         }

    That should fix it!

  3. sbt86
    Member
    Posted 1 year ago #

    Hey, thanks for the reply! Since the ad is generated via a plugin, am I making those changes within the css of the plugin? Or would I go to the css file of the theme and add the additional coding? Apologies if those are dumb questions, I'm way out of my element with this sort of thing.

Topic Closed

This topic has been closed to new replies.

About this Topic