- This topic has 11 replies, 4 voices, and was last updated 7 years, 10 months ago by
David.
-
AuthorPosts
-
March 26, 2016 at 10:25 am #181870
Jasper
Can i have a transparent bg color for the header together with a header bg image?
Now it seems to give preference to the image.
March 26, 2016 at 11:31 am #181898Tom
Lead DeveloperLead DeveloperLike an overlay color over the image?
Not currently – there’s no method for adding an overlay colors over a background image in CSS.
It would require some extra CSS to be added like this (not sure if it will work, just a though):
.site-header:before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-color: red; opacity: .6; display: block; } .inside-header { position: relative; z-index: 1; }That assumes you’re use the site header and not the Page Header add-on.
-
This reply was modified 10 years ago by
Tom.
-
This reply was modified 10 years ago by
Tom.
March 26, 2016 at 11:36 am #181903Jasper
yes, like an overlay
the css does not work
i use the header with the navmenu float rightMarch 26, 2016 at 11:37 am #181904Tom
Lead DeveloperLead DeveloperCan you link me to your site?
March 26, 2016 at 11:38 am #181908March 26, 2016 at 11:51 am #181920Tom
Lead DeveloperLead DeveloperTry the adjusted CSS above: https://generatepress.com/forums/topic/transparent-background-color-and-bg-image/#post-181898
March 26, 2016 at 11:52 am #181921Jasper
that does it, thanks
March 26, 2016 at 11:53 am #181922Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
May 23, 2018 at 2:34 pm #583008Cynthia
Hi Tom – I would like to have my content background color transparent, specifically
rgba(0, 14, 35, 0.6); however the customization area – Colors > Content > Background field does not accept that value. So, when I attempt to use the Simple CSS area this doesn’t work either.content {
background-color: rgba(0, 14, 35, 0.6);
}Any suggestions?
May 23, 2018 at 2:51 pm #583019David
StaffCustomer SupportHi Cynthia,
on the color palette the second slider adjusts the transparency. Just adjust this and then the color field will become rgba – once done copy, highlight all the field and paste =)
May 23, 2018 at 3:00 pm #583028Cynthia
David – Thank you for pointing out that 2nd slider….I’ve never noticed it there! LOL.
And BTW – I realized that I am able to enter the value: rgba(0, 14, 35, 0.6) but just without the ; at the end. The semicolon was making the field not accept the value.
The slider is definitely easier.
THANK YOU!!
May 23, 2018 at 3:01 pm #583032David
StaffCustomer SupportYou’re welcome Cynthia
-
This reply was modified 10 years ago by
-
AuthorPosts
- You must be logged in to reply to this topic.