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

  • glennrocksvb
    replied
    I don't see Testing style because I'm not an admin. What is its style id?

    Leave a comment:


  • Snowhog
    replied
    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?

    Leave a comment:


  • Snowhog
    replied
    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?

    Leave a comment:


  • Snowhog
    replied
    Make sure you select testing as the Style Theme. You should see it in the list; non-Admins can't see/use it.

    Leave a comment:


  • Snowhog
    replied
    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?

    Leave a comment:


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

    Click image for larger version

Name:	image.png
Views:	70
Size:	151.9 KB
ID:	29373

    Leave a comment:


  • glennrocksvb
    replied
    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.

    Leave a comment:


  • Snowhog
    replied
    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.

    Leave a comment:


  • glennrocksvb
    replied
    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.

    Leave a comment:


  • Snowhog
    replied
    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:	87
Size:	638.2 KB
ID:	29363Click image for larger version

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

Name:	Screen Shot 3.png
Views:	79
Size:	105.5 KB
ID:	29365

    Leave a comment:


  • glennrocksvb
    replied
    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.

    Leave a comment:


  • 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?

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