What I am trying to achieve sounds very simple but I can't get it to work.
I am trying to add opacity on top of the image so that the < h1 > tag is easier to read.
Here is my HTML:
<header> <section> <div class="img_content"> <div class="bg_img" style="background-image: url('path-to-image');" > <div class="container"> <h1 class="content_h1">Most Popular Lunches: Week 11</h1> </div> </div> </div> </section> </header> And here's the CSS:
/*Custom CSS */ .img_content { /* background: url(); */ background-repeat: no-repeat; background-size: cover; } header section{ padding:0; } @media screen and (max-width: 768px){ .content_h1 { font-size: 40px; padding: 21% 0; color: white; font-size: 14px; } .section_details { padding: 8% 0 19% 8%; font-size: 14px; } } section { padding: 10px 0; } .bg_img { background: #221f1f73; } .content_h1 { font-size: 85px; padding: 14% 0; color: white; } .section_details { padding: 4% 0 0 0; font-size: 14px; } I think that the problem might be the -Z index or something similar?