Header transparent, sticky won’t work
Hi,
i really enjoy your theme. But with settingup some css-style i have some problems:
i would like to have a (semi-)transparent header with a full working sticky menu :). But all what i’ve found here in the other posts doesn’t work for me. :( : If the header ist transparent, the sticky won’t work and vise versa :(.
That’s what i have so far in Custom.css:
body {
background-size: cover;
}
#main {
opacity: 0.7;
}
#colophon {
opacity: 0.6;
}Can you pls point me in the right direction?
Thanks in advantage
DeFries
Please excuse my poor english
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
6Solved :)
Following code works for me:
body { background-size: cover; } .main-navigation { background: rgba(96, 96, 96, 0.8) !important; /* after using '!important' the prob was solved */ } header#masthead { background: rgba(163, 163, 163, 0.6) !important; } #main { opacity: 0.7; } #colophon { opacity: 0.6; }Hi DeFries
Super, glad to hear you made progress on this.
Consider changing your #main and #colophon divs to also use RGBA. The problem with opacity is it also drops the opacity of the text in those divs. RGBA will target the background only.
All the best.
Works like a charme :). Thx a lot. :)
So for everybody else:
/* Vantage set background image with full page width and box background semi transparent*/ body { background-size: cover; } .main-navigation { background: rgba(96, 96, 96, 0.7) !important; } header#masthead { background: rgba(163, 163, 163, 0.6) !important; } #main { background: rgba(232, 232, 232, 0.7); } #colophon { background: rgba(96, 96, 96, 0.7)!important; }Do you have any sugestion how to make also the submenu’s semi transparent?
TIA
Sure, here we go:
/* Vantage - Adjust color and opacity of drop down menu items and drop down menu hover */ .main-navigation ul ul { background: rgba(200, 54, 54, 0.5) !important; } .main-navigation ul ul li:hover > a { background: rgba(200, 54, 54, 0.5) !important; }Thx again :) Works superb.
Super, glad we could help.
Chat soon.
Cheers.
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.