I want to add a quote to my website, but I'm having trouble positioning it correctly.
https://example.com/quote-image.png
Every time I try to adjust the position of the quote image, it moves when I zoom out.
https://example.com/background.png
I attempted using the position : absolute
CSS property.
Here is the code I have been working with:
div#quote-layer {
background-color: rgba(255,255,255,0.25);
margin-top: 0px;
margin-left: auto;
margin-right: auto;
margin-bottom: 0px;
padding : 25px;
width: 450px;
}
div#open-quote {position: absolute;
left: 666px;
top: 600px;
}
div#quote-layer p {
text-align: center;
}
<div id="quote-layer">
<div id="open-quote">
<img src="img/quotes.svg" width="100" height="100">
</div>
<p>
This is where my amazing quote goes!
</p>
</div>
I am looking for a more effective way to implement this. Any suggestions would be greatly appreciated!