• 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

Temery

Active member
#1
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?
 

Brogan

XenForo moderator
Staff member
#2
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>