1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 How to center banner?

Discussion in 'Styling and Customization Questions' started by click here, Sep 3, 2015.

  1. click here

    click here Active Member

    What is the easiest way to center a banner?
  2. Amaury

    Amaury Well-Known Member

    #logo {
        text-align: center !important;
  3. click here

    click here Active Member

    I'm sorry, I meant how to center an adsense banner
  4. AndyB

    AndyB Well-Known Member

    You can use this add-on which does that, or see how it was done by looking at the add-on.

    Ad Manager
  5. Brogan

    Brogan XenForo Moderator Staff Member

    <div style="text-align: center">
    Ad code here
  6. Mike Creuzer

    Mike Creuzer Well-Known Member

    If the banner is block type. You will need:

    <div style="text-align: center; margin: 0 auto;">
    Ad code here
    MattW likes this.
  7. click here

    click here Active Member

    Awesome, thanks guys!

Share This Page