Design comparison
Solution retrospective
Challenge was relatively straight forward to solve, only property I was a little bit unsure of how to set it properly was position: absolute or relative to place the big quotation marks behind the text. If anybody could shine a light on it for me I'd be very much grateful!
Any other feedbacks are highly appreciated as well!
Thank you guys :) Fabio
Community feedback
- @CorinaMurgPosted over 1 year ago
Hi Fabio,
Really nice!
Here's what I know about the difference between "absolute" and "relative":
Relative means it's relative to the element's normal position (where it would be positioned based on the flow given by HTML), and you can move it with top/left/bottom/right.
Absolute means the position will be determined relative to the closest parent element. In this case, the child element (the one you want to move) has to have position absolute, and (important) the parent element must be set to position relative.
In your case, the "quote" is a child of the parent "testimonial-1". You correctly set the parent "testimonial-1" to position: relative, and the child "quote" to position: absolute.
Hope this helps a bit. Please reach out if this is still not clear. Corina
PS. If the parent is not set to position: relative, then the child will be moved relative to the body element.
Marked as helpful1@fabalvesfrPosted over 1 year agoCrystal clear, @Cor-Ina! Thank you a lot for this thorough explanation! :) All the best, Fabio
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord