Announcement

Collapse
No announcement yet.

Making .b-top-background_header-mainnav transparent

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

    Making .b-top-background_header-mainnav transparent

    In the Inspector and looking at:

    .b-top-background_header-mainnav
    background #0F233200

    Changing background to transparent gives me what I want.

    What Style Variable is this? I tried changing topbg_header_mainnav_background to transparent, but it doesn't do what the above does.

    Or what css would do this?​

    Additionally, how do you 'convert' the Inspector item name to the Style Variable name?
    The Linux Community has given me much. I do what I can to return the favor!

    #2
    Follow the instructions in this vBulletin video tutorial.



    It was posted 11 years ago but the instructions still apply today except that instead of using Firebug, you can use the built-in debugger tool in the browser by right-clicking and choosing Inspect.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      Thank you. Crappy quality video; blurry.

      topbg_header_mainnav_background is the style var, but changing the background color to transparent doesn't make the container transparent unless viewing the page in Inspector, and I don't understand why. I can change the background color to any other color and the container reflects that color change.​

      Click image for larger version

Name:	Screen Shot 1.png
Views:	47
Size:	638.2 KB
ID:	29363Click image for larger version

Name:	Screen Shot 2.png
Views:	42
Size:	678.1 KB
ID:	29364Click image for larger version

Name:	Screen Shot 3.png
Views:	41
Size:	105.5 KB
ID:	29365
      The Linux Community has given me much. I do what I can to return the favor!

      Comment


        #4
        If it doesn't show as transparent in the Inspector even if you set the stylevar to transparent, then check if you are on the right style/theme.

        Nice background, btw.
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        Comment


          #5
          Originally posted by glennrocksvb View Post
          If it doesn't show as transparent in the Inspector even if you set the stylevar to transparent, then check if you are on the right style/theme.
          I am using the right style/theme. If I set a background color in topbg_header_mainnav_background and save, that color is reflected on the sites main page. If I set topbg_header_mainnav_background to transparent, it isn't reflected on the sites main page.

          Regardless of the background color value I set, looking at the sites main page with Inspector, the element (?) .b-top-background__header-mainnav is transparent.
          The Linux Community has given me much. I do what I can to return the favor!

          Comment


            #6
            If you inspect the .b-top-background__header-mainnav element and see that the background is set to transparent (and its parent element also has transparent background set), then you should see the body background image through it.
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            Comment


              #7
              Right now, I'm seeing the background as #0F2332 and not transparent

              Click image for larger version

Name:	image.png
Views:	43
Size:	151.9 KB
ID:	29373
              Helpful? Donate. Thanks!
              Buy me a coffeePayPal QR Code
              Fast VPS Host for vBulletin:
              A2 Hosting & IONOS

              Comment


                #8
                Originally posted by glennrocksvb View Post
                Right now, I'm seeing the background as #0F2332 and not transparent
                It isn't now. It's set as transparent. Look again?

                But even though it is set transparent, the background image doesn't show through it, again, unless viewing the page with Inspector.

                What is its parent element?
                The Linux Community has given me much. I do what I can to return the favor!

                Comment


                  #9
                  Make sure you select testing as the Style Theme. You should see it in the list; non-Admins can't see/use it.
                  The Linux Community has given me much. I do what I can to return the favor!

                  Comment


                    #10
                    I've tested by removing all content from css_additional.css (from Style testing) and reloading the site. body background color is white (default) and it shows through the transparent areas of your site logo and the rest of .b-top-background__header-mainnav.

                    When I add:
                    Code:
                    /* Background Image  - START */
                    body:not([class*="cke_"]):not([contenteditable]) {
                    /* background: url("core/images/misc/water.png") no-repeat center fixed; */
                    /* background: url("core/images/misc/Cracks_in_the_Earth.jpg") no-repeat center fixed; */
                    /* background: url("core/images/misc/AlpineWildflowers.jpg") no-repeat center fixed; */
                    /* background: url("core/images/misc/AI_Abstract1.jpg") no-repeat center fixed; */
                    /* background: url("core/images/misc/forest-morning-light-1.jpg") no-repeat center fixed; */
                    /* background: url("core/images/misc/forest-morning-light-2.jpg") no-repeat center fixed; */
                    /* background: url("core/images/misc/forest-morning-light-3.jpg") no-repeat center fixed; */
                    /* background: url("core/images/misc/Space_HD.jpg") no-repeat center fixed; */
                       background: url("core/images/misc/Sun_glint_on_the_Caspian_Sea.jpg") no-repeat center fixed;
                       background-size: cover;
                    }
                    /* Background Image - END */​
                    to css_additional.css (no other coding), .b-top-background__header-mainnav still shows a black background when looking at the site, but is transparent when viewing the site with Inspector on.

                    I really want to get to the bottom of this. Why does your site respect the transparency of .b-top-background__header-mainnav and our does not?
                    The Linux Community has given me much. I do what I can to return the favor!

                    Comment


                      #11
                      I 'think' I've isolated the cause as being the css code above (post #10). IF not the actual cause, it affects the cause.

                      I commented out the three lines that are active and saved/closed the CSS Editor. The result:

                      Click image for larger version  Name:	Without_Background_Image_CSS.png Views:	0 Size:	29.4 KB ID:	29382
                      As you can see, .b-top-background__header-mainnav is transparent.

                      Does this suggest anything to you?
                      The Linux Community has given me much. I do what I can to return the favor!

                      Comment


                        #12
                        I don't see Testing style because I'm not an admin. What is its style id?
                        Helpful? Donate. Thanks!
                        Buy me a coffeePayPal QR Code
                        Fast VPS Host for vBulletin:
                        A2 Hosting & IONOS

                        Comment


                          #13
                          Originally posted by glennrocksvb View Post
                          I don't see Testing style because I'm not an admin. What is its style id?
                          Made you a full Admin (temporarily). Log back in and you should be able to select that Style.
                          The Linux Community has given me much. I do what I can to return the favor!

                          Comment


                            #14
                            Thanks. I checked the Testing style and I think it's working as designed. The top portion of the background image is plain black and it's showing through the header as expected.
                            Helpful? Donate. Thanks!
                            Buy me a coffeePayPal QR Code
                            Fast VPS Host for vBulletin:
                            A2 Hosting & IONOS

                            Comment


                              #15
                              Originally posted by glennrocksvb View Post
                              Thanks. I checked the Testing style and I think it's working as designed. The top portion of the background image is plain black and it's showing through the header as expected.
                              But if you view the page with Inspector, you see what is shown in image 2 in post #3. There is image content that should show....Wait! I'm seeing something I didn't see before.

                              I'm about to head out for a bit. I'll get back to you on this.
                              The Linux Community has given me much. I do what I can to return the favor!

                              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 "|||"