Design comparison
Solution retrospective
aligning background images is hard. Are there any tutorials for aligning these kinds of images?
Community feedback
- @kaiser-sbPosted about 1 year ago
Great job on the project! If you're using css flexbox - you can align images using
justify-content
oralign-items
- depending on the flex direction. if you're going without flexbox - you can set the parent containerposition : absolute
and the child container asposition : relative
and the set thetop
,bottom
,left
andright
alignment. If you're trying to centre a container horizontally,margin-left : auto
andmargin-right : auto
will do your job. Alignment is always hard thing - just learn the concepts and keep experimenting. Hope this helps. Happy coding!Marked as helpful0
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