- This topic has 2 replies, 2 voices, and was last updated 4 years, 3 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The topic ‘Add an image in the header’ is closed to new replies.
I’m trying to add an image in header.php that will be behind the logo and navigation. Needs to float right but can’t bring the container up to top except with absolute positioning which looses the center alignment.
Try absolute positioning with something like this:
.tree {
position: absolute;
top: 0;
right: 30%;
}
Additional info, you may also need to give the menu a z-index value to make sure its background color doesn’t disappear behind the tree image:
#site-navigation {
z-index: 1;
}
That works. Thank you !!