How to change header height in VB5?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Taim
    New Member
    • Jan 2011
    • 15
    • 5.0.X

    How to change header height in VB5?

    Hello,

    How can I change the CSS attributes of Header height which is 104px by default. I want to decrease it to 80px but can't find a way to do this.
    Please assist.

    Many Thanks.
    Best Web Hosting – SSD Powered Web Hosting with Unlimited Bandwidth $2.95/m
    Domain Names - .Com Domains for $8.95 – Register, Renewal & Transfer
  • Robyn L
    Member
    • Apr 2015
    • 33
    • 5.1.x

    #2
    I'd like to be able to do change the header height too. Can anyone help please. Thank you.

    Comment

    • In Omnibus
      Senior Member
      • Apr 2010
      • 2310

      #3
      Styles & Themes / Style Manager / style variable editor / Header / header_height

      Comment

      • Robyn L
        Member
        • Apr 2015
        • 33
        • 5.1.x

        #4
        Thank you.

        Comment

        • paulnicholson
          Senior Member
          • Mar 2010
          • 149
          • 4.0.0

          #5
          How do I reduce the 22px padding of the header?

          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 74132

            #6
            The logo has a 22 pixel padding at the top. Is that what you mean?

            You can assign your own custom CSS within the css_additional.css template.

            Code:
            #header .site-logo {
                padding-top: 22px;
            }
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment

            • paulnicholson
              Senior Member
              • Mar 2010
              • 149
              • 4.0.0

              #7
              If you right click on a website and Inspect the padding around the logo, you can see the padding value. In the default case of vbulletin 5 style, it is clearly shown as
              padding
              :
              22px 10px 26px 10px
              ;

              Comment

              • Wayne Luke
                vBulletin Technical Support Lead
                • Aug 2000
                • 74132

                #8
                That is how I determined that the CSS code above is what you need to change. There is no style variable for this value.
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API

                Comment

                • OpenEnd
                  Member
                  • Dec 2019
                  • 73
                  • 5.7.X

                  #9
                  Originally posted by Wayne Luke
                  The logo has a 22 pixel padding at the top. Is that what you mean?

                  You can assign your own custom CSS within the css_additional.css template.

                  Code:
                  #header .site-logo {
                  padding-top: 22px;
                  }
                  Hello Wayne,

                  I checked the css_additional.css, but found only empty space.

                  Do I need to bring in this additional code?

                  What are the commands, if I want to change the padding values for all four sides to 5px ?

                  Greetz Charly

                  Comment

                  • Wayne Luke
                    vBulletin Technical Support Lead
                    • Aug 2000
                    • 74132

                    #10
                    Yes... The css_additional.css template is shipped intentionally blank so you can add your own custom CSS to the system. You need to add your own CSS here to override the default CSS provided in the style system.

                    You can read about CSS Padding here: https://developer.mozilla.org/en-US/...eb/CSS/padding
                    Translations provided by Google.

                    Wayne Luke
                    The Rabid Badger - a vBulletin Cloud demonstration site.
                    vBulletin 5 API

                    Comment

                    Related Topics

                    Collapse

                    Working...