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

Adding image/text into the header

Discussion in 'Styling and Customization Questions' started by DaveL, Nov 30, 2011.

  1. DaveL

    DaveL Well-Known Member

    Im currently using the ad location, but I would like to add either an image or text into the center of the header.

    Can anyone point me in the direction of where I would need to place the image code to get it to display in the center, between the two images?

    Ive tried having a play around, but not having much joy.

    header.png
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> ad_header

    Code:
    <div style="float: right;">
    	RIGHT STUFF
    </div>
    
    <div style="text-align: center;">
    	MIDDLE STUFF
    </div>
    
     
    ineedhelp likes this.
  3. DaveL

    DaveL Well-Known Member

    Hi Jake,

    For some reason the above dosent seem to work for me (n)

    ad.png

    It wont align the "Listen Live" button into the middle.

    This is the code I used:

    Code:
    <xen:hook name="ad_header" />
     
    <div style="float: right;">
        RIGHT STUFF
    </div>
     
    <div style="text-align: center;">
        <a href="#" onClick="MyWindow=window.open('http://www.doverlocals.co.uk/test2.html','MyWindow','toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=yes,width=440,height=135'); return false;"><span><img src="http://www.mydover.co.uk/listenlive.png" align="right" height="100px" /></span></a>
    </a>
     
    </div>
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Your img tag has align="right". That might be it.
     
  5. BioRage

    BioRage Member

    Never mind, Solved it... RightAreaContent /facepalm
     
  6. ineedhelp

    ineedhelp Well-Known Member

    Hi I've tried the above, can't get it to work... I want something similar to the 'support our site' on here like on here http://8wayrun.com/calibur/

    Also needs to be more centralised as I have a google search box on the right.
     

Share This Page