Making the Hero image full width
-
Hi,
I have seen in other sites that hero images are able to be set as full width. How is this done? I have seen on another question that this should work:
.hero-content > img { width: 100%; }
But it doesn’t work for me.
Here is my full code:
header#masthead.site-header{ background-color: #000000; } body { background-color: #FFFF00; } .hero { height: 700px; color: transparent; padding: 0px; } .hero.page-header h1 { transform: translate(-10%,-70%); } .hero-inner { height: 700px; background-image: url("wp-content/uploads/2019/09/hpimage-2.jpg"); } .hero-content > img { width: 100%; }
Thanks, P
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Making the Hero image full width’ is closed to new replies.