Insert image under NAV BAR

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iusevb
    New Member
    • Jan 2012
    • 14

    [vB4] Insert image under NAV BAR

    I researched and found some helpful things but none of them really helped me out. So the question is, how can I insert an image under the NAV BAR? Im using VB 4.1.9.

    Any help would be great!

    Thanks!
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74167

    #2
    Using HTML you would do one of the following:

    1) Place the Image in an Advertising Location using the Manage Ads tool in the AdminCP.

    2) Place the Image in a Notice using the Notices Manager in the AdminCP.

    3) Edit the navbar template directly and insert your Image.
    Translations provided by Google.

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

    Comment

    • iusevb
      New Member
      • Jan 2012
      • 14

      #3
      Thanks for the reply. If I wanted to edit the nav bar template directly, what steps would I need to do?

      Thanks again for the help!

      Comment

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

        #4
        Styles & Templates -> Style Manager.

        Style Manager: https://www.vbulletin.com/docs/html/stylemanager
        Edit Template: https://www.vbulletin.com/docs/html/...r_add_template
        Translations provided by Google.

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

        Comment

        • iusevb
          New Member
          • Jan 2012
          • 14

          #5
          While in the edit template, where should I put the HTML code for the image?

          Comment

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

            #6
            If you want it directly under the navbar, then put it above the breadcrumb.

            If you want it under the breadcrumb, put it under.

            Really depends on your needs. The code should be adequate enough to read the different locations. The Navbar template has the navbar, breadcrumb and notices in it.
            Translations provided by Google.

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

            Comment

            • iusevb
              New Member
              • Jan 2012
              • 14

              #7
              I figured out how to insert an image . Is there a way so that when the window screen moves the image moves with the window screen?

              Comment

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

                #8
                I don't understand the question. Images should scroll with screen scrolling automatically.
                Translations provided by Google.

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

                Comment

                • iusevb
                  New Member
                  • Jan 2012
                  • 14

                  #9
                  As I click on the bottom right hand side of the screen to stretch out the window, the image stays in place while everything else stretches and moves with the window. Thus making the image look out of place. Is there a way to have the image below the nav tab move automatically with size of the window? I guess is there a way to have the image also be a wrapper? If that makes sense.

                  Thanks for the help

                  Comment

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

                    #10
                    Really don't understand what you're saying. Do you have a link that shows this problem in action?
                    Translations provided by Google.

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

                    Comment

                    • iusevb
                      New Member
                      • Jan 2012
                      • 14

                      #11
                      The link is www.benzeffect.com. While the rest of the forum is moving, the image below the nav bar stays stationary. As the window size increases, the white background toward the right of the image increase as the left side does not. Also, when the window size decreases, the image over hangs the border, looking out of place.

                      Sorry if my explanation isn't very understandable.

                      Comment

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

                        #12
                        That is standard behavior. Might think about centering the image with HTML and it will stay in the center. Unlike smartphone browsers which resize images when you zoom in and out, images don't change size on the desktop automatically.
                        Translations provided by Google.

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

                        Comment

                        • iusevb
                          New Member
                          • Jan 2012
                          • 14

                          #13
                          How can I do that with HTML? I'm not sure what code to use in my HTML code for my image.

                          Comment

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

                            #14
                            <div style="text-align:center><img src="pathtoimage.png"></div>

                            Or you can do something like this:

                            CSS -

                            .myawesomeimg {
                            width: 900px;
                            margin-left: auto;
                            margin-right: auto;
                            display: block;
                            border: 0px;
                            }

                            HTML -
                            <img class="myawesomeimg" src="pathtoimage.png" />


                            For more on learning HTML and CSS please visit http://www.w3schools.com.
                            Translations provided by Google.

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

                            Comment

                            • iusevb
                              New Member
                              • Jan 2012
                              • 14

                              #15
                              This is the code i put into the nav bar: <a href="http://benzeffect.com" target="new">="text-align:center><img src="http://benzeffect.com/forum/images/misc/SLS banner.jpg"alt="Image Down" title="Benz Effect"></a>

                              The image is centered but I get the text ="text-align:center> by the image under the nav bar. Im not to sure why this is happening.

                              Comment

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