Announcement
Collapse
No announcement yet.
Making .b-top-background_header-mainnav transparent
Collapse
X
-
I don't see Testing style because I'm not an admin. What is its style id?
- Top
- Translate
- Bottom
-
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:
As you can see, .b-top-background__header-mainnav is transparent.
Does this suggest anything to you?
- Top
- Translate
- Bottom
Leave a comment:
-
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:
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.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 */
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?
- Top
- Translate
- Bottom
Leave a comment:
-
Make sure you select testing as the Style Theme. You should see it in the list; non-Admins can't see/use it.
- Top
- Translate
- Bottom
Leave a comment:
-
It isn't now. It's set as transparent. Look again?Originally posted by glennrocksvb View PostRight now, I'm seeing the background as #0F2332 and not transparent
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?
- Top
- Translate
- Bottom
Leave a comment:
-
Right now, I'm seeing the background as #0F2332 and not transparent
- Top
- Translate
- Bottom
Leave a comment:
-
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.
- Top
- Translate
- Bottom
Leave a comment:
-
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.Originally posted by glennrocksvb View PostIf 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.
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.
- Top
- Translate
- Bottom
Leave a comment:
-
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.
- Top
- Translate
- Bottom
Leave a comment:
-
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.
- Top
- Translate
- Bottom
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?Tags: None
- Top
- Translate
- Bottom
Latest Posts
Collapse
-
by ChunkHello!
My name is Chunk (nickname). Im current graduated from my local college for Web Development. Today I will be exploring vBulletin...07-11-2026, 06:08 AM -
Get Affordable and Fast VPS for vBulletin -
by PitmanLol... Like I said, I am Shon.
I am I user and administrator of vBulletin since 2002 (good old days) and I joined here because I recently...07-08-2026, 02:29 PM

Leave a comment: