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

XF 1.5 Header Adv messing up display

Xyphien

Active member
#1
upload_2016-7-6_12-25-30.png

*Ignore OSRS*

I'm using the code

28. How do I place an image or advert in the header on the right?
Use the ad_header template and wrap the contents in a div like so:
Code:
<div style="float: right">
Image or advert code
</div>

for the first image and:

29. How do I place an image or advert in the header on the right and center it vertically?
Use the ad_header template and wrap the contents in a div like so:
Code:
<div style="display: block; float: right; line-height: {xen:calc '@headerLogoHeight - 4'}px; *line-height: @headerLogoHeight; height: @headerLogoHeight; vertical-align: middle">
Image or advert code
</div>

for the second image *Listed below*

How do I get it to simply appear next to the logo without it doing all of this weird stuff?



upload_2016-7-6_12-27-17.png
 

Mike

XenForo developer
Staff member
#2
Your logo HTML has been customized and is behaving differently (it's not floating, for example), so that changes the interaction with the instructions mentioned.