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

Aligning graphic in ad_header

Discussion in 'XenForo Questions and Support' started by Temery, Nov 20, 2011.

  1. Temery

    Temery Active Member

    I have a logo graphic at the top of the forum that is aligned left. I want to use the space to the right of the logo. For a banner ad. When I put the google adsense code in the ad_header template, the ad shows up, but it is aligned to the top, and abutting the logo graphic.

    I'd like the ad to be to the right of the logo, aligned to the center of the available space both horizontally and vertically.

    How can I do this?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Wrap the advert code in a div, float it right and add some padding to the top.

    <div style="float: right; padding-top: 50px;">code here</div>
    Claudio likes this.

Share This Page