Full Width Homepage Background Image with Transparent Header
-
Hello!
I’m using this code to display a full width background image with a transparent header.
.page-id-123 .site-header { position: absolute; z-index: 2; left: 0; right: 0; background-color: transparent; }
It works great, but I’m also using a full width and full height (100%vh) to display text and hero image. Using this code, the container gets pushed upwards and it’s no longer vertically centered.
Now I was able to fix it by adding padding to the container (and changing the amout of padding based on the screen size), but is there a better way to do it?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Full Width Homepage Background Image with Transparent Header’ is closed to new replies.