Community Forums › Forums › Archived Forums › General Discussion › Parallax Pro Site Header transparency and height
- This topic has 7 replies, 3 voices, and was last updated 11 years, 2 months ago by
angelbedear.
-
AuthorPosts
-
October 30, 2014 at 4:07 pm #129939
angelbedear
MemberHi,
Newbie here, does any one know how to add transparency to the site header and add some height to it? I want the background image to show through underneath the transparent header, like on this site: http://allume.com/
I'm just starting to customize my site and I can change the color of the header but not add transparency unless I scroll down. I've added some padding to the header to make it taller, but I know there's probably a better way.
Here's the link : http://sample3.keeniconcepts.com/
Thank you in advance!
AngieOctober 30, 2014 at 4:56 pm #129942dccmedia
MemberHello Angie, I hope this helps.
.site-header {
background-color: #72544d;
left: 0;
opacity: 0.5; // Transparent
position: fixed;
top: 0; // This will place the menu all the way to the top.
width: 100%;
z-index: 999;
}I hope this helps. I'll be uploading a little video to show what this will look like 🙂
Good luck,
ChrisOctober 30, 2014 at 4:57 pm #129943dccmedia
MemberJust a little fyi... I'm learning this as I go along. A newbie as well. 🙂
October 30, 2014 at 4:59 pm #129944angelbedear
MemberThanks so much I'll give it a try!
October 30, 2014 at 5:14 pm #129945angelbedear
MemberIt kind of worked, I got the image to show though by putting it up in site header, but the site header logo also got more transparent...closer, but not there yet. I'll keep messing with it, thank you Chris.
November 14, 2014 at 1:07 pm #131541sean nelson
MemberCreate a transparent background image (25x25 should be fine). Then add the image as a background image for .site-header.
.site-header {
background: url(/wp-content/uploads/2014/09/black-opacity-75.png);
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 900;
}This will make the header background optic on all pages. It looks good on the home page but not so good on interior pages. (black background image with .7 opacity becomes grey on interior pages when body background is set to white) For the site I'm building I isolated the home page header by adding the following code.
.home .site-header {
background: url(/wp-content/uploads/2014/09/black-opacity-75.png);
}Then I left the code for .site-header as originally written. Now header is optic on home page and black on interior pages.
You can see this on my build site at fourtoscore.com. (If you're reading this in a couple of weeks site will be at oldviningsinn.net)
November 21, 2014 at 3:24 pm #132447angelbedear
MemberI'm sorry , I never saw this reply! I'll give it a try, thank you!
November 21, 2014 at 4:02 pm #132448angelbedear
MemberThat worked to get the transparent header, but how do I get my background image to get behind it and show through?
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.