Announcement

Collapse
No announcement yet.

Help Centering header (logo)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help Centering header (logo)

    fixed
    Last edited by fivetoone; Sun 4 Apr '10, 6:51pm.

  • #2
    Try to replace the following code:

    HTML Code:
    <a href="$vboptions[homeurl]"><img id="logo_image" src="$stylevar[titleimage]" border="0" alt="$vboptions[homeurl]" /></a>
    with:

    HTML Code:
    <div style="margin:0 auto;text-align:center"><a href="$vboptions[homeurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[homeurl]" /></a></div>
    Last edited by borbole; Sun 4 Apr '10, 4:57pm.

    Comment


    • #3
      Nothing seems to have changed by making that change.

      Comment


      • #4
        That should have centered it. Anyway, can you try to add the text-align: center; to the logo_image id in the css file? Or you could try to add it at vbskin_header class but that would center the whole header.

        Or replace the following code:

        HTML Code:
        <a href="$vboptions[homeurl]"><img id="logo_image" src="$stylevar[titleimage]" border="0" alt="$vboptions[homeurl]" /></a>
        with:

        HTML Code:
        <div class="logo"><a href="$vboptions[homeurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[homeurl]" /></a></div>
        then at the css file add the following code:

        Code:
        .logo{
        text-align: center;
        }
        One of those methods will center it for sure.

        P.s. Can I see a link to your forum?
        Last edited by borbole; Sun 4 Apr '10, 4:55pm.

        Comment


        • #5
          fixed
          Last edited by fivetoone; Sun 4 Apr '10, 6:51pm.

          Comment


          • #6
            The logo appeared centered at the forum you pm''ed me. Did you try to hard refresh the page after you made the first change I posted?

            Anyway, you can add that code for the logo class at your css file. In vb 4 I would add it at the additional.css but I don''t know if vb 3 has one.

            Comment


            • #7
              seriously??? i cleared my cache on 2 browsers, still on the left side for me...

              Im in the additional css but where, just add it to the end?

              Comment


              • #8
                Yep, it appeared centered to me when I loaded your forum the first time.

                Yes, try to add it at the very end.

                Also, did you try to add the text-align: center; to the logo_image id in the css file?

                Comment


                • #9
                  fixed
                  Last edited by fivetoone; Sun 4 Apr '10, 6:52pm.

                  Comment


                  • #10
                    Glad to hear it.

                    Comment


                    • #11
                      thanks for the help, i completely missed in the css it was written to align left

                      Comment


                      • #12
                        Originally posted by fivetoone View Post
                        thanks for the help, i completely missed in the css it was written to align left
                        You are welcome. Glad to have been of help.

                        Comment

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