Not a bug  Using A Table In Header Doesnt Display Properly


Active member
I have a header in a table that I use on my current vBulletin forum - it displays just fine there.


Putting the table in a standalone html page displays it properly as well.


When I put the same table into the header template in XF it isn't displaying properly.


Happy to provide a copy of the header table html if it helps.


XenForo developer
Staff member
This is down to relying on a non-standards compliant behavior. I actually like the behavior, but it is what it is.

XHTML 1.0 transitional only triggers "almost standards" on the browsers. The one thing it violates is leaving space around images in tables for ascenders/descenders. HTML5 triggers full standards mode. This table is relying on the almost standards behavior.,_Tables,_and_Mysterious_Gaps

The workaround is to give the images style="display:block". This will have to be applied to the images coming from the ad code as well.


Active member
I learn something new every day :) The information in the second link fixed my issue.

Many thanks Mike for following this up and for the information you have provided.