Design comparison
SolutionDesign
Solution retrospective
is there any more way to center all inline div
Community feedback
- @KirstChatPosted almost 3 years ago
Nice work!
If you want to center a div, I would look into flexbox rather than using absolute positioning for elements. This is a pretty good guide: https://css-tricks.com/snippets/css/a-guide-to-flexbox/#flexbox-background - you can also find lots of tutorials on YouTube!
You would need to wrap your three divs in a container. You could use another div as the container but I would suggest looking into semantic HTML elements and using either section or main. Hope that helps :)
Marked as helpful1@aayusranjanPosted almost 3 years ago@KirstChat it's means lot for me, thank you so much to help me out.
0
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