How to position the quote illustration?
I'm very bad at positioning illustration, and trying to get better. Here is my code pen, and thank you!
https://codepen.io/Jonah-the-lessful/pen/XJrodNy?editors=1100
4 Replies
I try using position absolute, it works well, but when I shrink down to mobile, the illustration drift away.
Depends on what you trying to do i guess. If you want to put quote img inside of one or all of the testimonial, you can just use
and remove the quote div.
If you want it to be at the same position of your image; use z-index on quote and try relative units instead of fixed one for positioning.
Absolute positioning is smt i can't do great too but I would put quote div inside the testimonial container or just first testimonial, use position absolute on the quote and relative on the parent to make it looks like the image.
You could do all that with a single property instead of having 4 different properties
background: url(https://i.ibb.co/bgrG5z8/bg-quotes.png) top left / auto no-repeat;
But i would rather write it
background: url(https://i.ibb.co/bgrG5z8/bg-quotes.png) 0 0 / auto no-repeat;
Thanks!