I am adding a button to pop up a newsletter signup form inside a module. I have a background image set and am looking for a way to ensure the text says on top of the background image regardless of screen size. I've been playing about with the css but am no expert so if anyone could provide any advice on the best way to do this I would be very appreciative.
My CSS is:
/** Newsletter sign up styling **/
.newsletter {
background-image: url(/images/nl-bg.png);
background-repeat: no-repeat;
text-align: center;
height: 240px;
background-position: center;
padding-top: 80px;
}
.newsletter h2 {
margin-bottom:0;
}
The HTML within the module is:
<div class="newsletter"><p style="text-align: center;">To be the first to see exclusive artwork and hear the latest news on Lindsey’s writing, sign up to the newsletter.</p>
<p style="text-align: center;">{source}<script type="text/javascript" src="https://static.mailerlite.com/data/webforms/544009/m6o3n5.js?v1"></script>{/source}</p></div>
With this the background image is not responsive either, I'm guessing because of the height attribute, but without that the background image is cut off.
The URL to the page is - Page URL removed Thank you in advance for any advice.