Announcement

Collapse
No announcement yet.

Need help with centering my vBulletin Header IMG

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need help with centering my vBulletin Header IMG

    Hi guys,

    So i'm trying to center my header IMG but i have no clue how to do that, i've tried looking in the CSS files but cant find it. Is there a CSS code i can use in Additional.Css file to center my img? or what CSS file do i have to look for exactly to change my Header IMG to center

    #2
    Without seeing your site, I'm guessing you are on vB5 and need this code:

    Code:
    #header .site-logo {
        text-align: center;
    }
    Add that CSS code in css_additional template.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      I am running vB5 and the website is Nastrix.co.uk. I've done it without using the CSS code by making sure the image was center when i uploaded it. Not very good at explaining. But thank you anyway.

      Comment


        #4
        Well, you can use the original smaller logo and use the CSS code below.

        Code:
        #header .toolbar {
            width: auto;
        }
        
        #header .site-logo {
            text-align: center;
        }
        This is slightly better because the logo is smaller in size which means it will be loaded faster and for mobile users, more mobile data will be saved. This may not be that much of a difference but it's just odd to have the actual logo inside the image file not centered. If your logo turned up in Google Image results, people will see that.
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        Comment


          #5
          Actually right now, your solution only works on desktop or bigger screens. I checked your site on mobile and the logo is not centered.
          Helpful? Donate. Thanks!
          Buy me a coffeePayPal QR Code
          Fast VPS Host for vBulletin:
          A2 Hosting & IONOS

          Comment

          Users Viewing This Page

          Collapse

          There is 1 user viewing this forum topic.

          • Guest Guest

          Latest Posts

          Collapse

          Working...
          X
          Searching...Please wait.
          An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

          Please push the back button and reload the previous window.'
          An unexpected error was returned: 'Your submission could not be processed because the token has expired.

          Please push the back button and reload the previous window.'
          An internal error has occurred and the module cannot be displayed.
          There are no results that meet this criteria.
          Search Result for "|||"