center a logo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steve1966
    Senior Member
    • May 2007
    • 182

    center a logo

    Hi is there anyone who can please help me with this question

    i have a logo on my forum and its positioned to the left how can i make it to appear center

    i think this is th code for it that i found in the header template

    <td width="300"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img border="0" src="cb/cb/logo.gif" width="300" height="122" alt="$vboptions[bbtitle]" class="logo"/></a></td>
    thanks
  • AzH
    New Member
    • Apr 2005
    • 22
    • 3.8.x

    #2
    Add: <center> at the beginning and </center> at the end....
    || Left 4 Dead ||| SWTOR ||

    Comment

    • steve1966
      Senior Member
      • May 2007
      • 182

      #3
      Originally posted by AzH
      Add: <center> at the beginning and </center> at the end....
      where do i add this i tried at the begining of the code it did not work

      Comment

      • AzH
        New Member
        • Apr 2005
        • 22
        • 3.8.x

        #4
        Try:

        Code:
        <td width="300"><center><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img border="0" src="cb/cb/logo.gif" width="300" height="122" alt="$vboptions[bbtitle]" class="logo"/></a></center></td>
        || Left 4 Dead ||| SWTOR ||

        Comment

        • steve1966
          Senior Member
          • May 2007
          • 182

          #5
          Originally posted by AzH
          Try:

          Code:
          <td width="300"><center><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img border="0" src="cb/cb/logo.gif" width="300" height="122" alt="$vboptions[bbtitle]" class="logo"/></a></center></td>
          nope still did not work

          Comment

          • peterska2
            Senior Member
            • Oct 2003
            • 8869
            • 3.7.x

            #6
            In the header template

            FIND

            Code:
            <td align="$stylevar[left]">
            REPLACE WITH

            Code:
            <td align="center">

            Comment

            • nirvanilla
              Senior Member
              • Nov 2003
              • 251

              #7
              lol. all of the amazing advances in the new 3.7... you know what we really need? for vb to ship with logos centered BY DEFAULT. everytime I come here there's always at least one "center logo" thread. Nothing against the thread starter btw, I've had my own issues with centering logos and half the time the 'fixes' don't work. With my current board I've just left it left-aligned cos i can't be arsed.

              centered logos by default in 3.8

              Comment

              • steve1966
                Senior Member
                • May 2007
                • 182

                #8
                Originally posted by Kerry-Anne
                In the header template

                FIND

                Code:
                <td align="$stylevar[left]">
                REPLACE WITH

                Code:
                <td align="center">
                thanks for your help

                Comment

                • tommy2watt
                  Senior Member
                  • Mar 2005
                  • 120

                  #9
                  yeah this is getting annoying..
                  every upgrade you have to revert the header and footer templates..

                  it would be nice if they would hard code what needs to be in there
                  so you dont have to mess around after an upgrade..

                  i agree on the auto centering of the logo or some option in the settings
                  to make it left/center/right

                  Comment

                  • Grintaci
                    New Member
                    • Jan 2008
                    • 9

                    #10
                    Originally posted by Kerry-Anne
                    In the header template

                    FIND

                    Code:
                    <td align="$stylevar[left]">
                    REPLACE WITH

                    Code:
                    <td align="center">
                    Thanks my friend Kerry-Anne...

                    This is work perfect 100% for me

                    Comment

                    • Ash_Yamato
                      Member
                      • Jun 2008
                      • 41

                      #11
                      Thanks!!!!!

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...