Design comparison
Solution retrospective
Found it difficult aligning the text under image.
Community feedback
- @pbgo2Posted about 1 year ago
HI i looked your html too , i think when you will try to tidy scope of tags considering open /close tags with stuff inside intended. Such approach generally make code more readable and easier to fix it, also allow to you found some issues and fix problem with on page output format (simply code became much more intuitive )
Tip! try to keep tags convention in your own code as you get it from code snippet:
<div class="attribution"> Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>. Coded by <a href="#">Your name here</a>. </div>
Marked as helpful0 - @Abhishek-Sahu532Posted about 1 year ago
Hello there π. Congratulations on successfully completing the challenge! π
CSS π¨:
Let me explain, How you can easily center the component for better layout To properly center the component on the page, you should use Flexbox or Grid layout. You can read more about centering the itemπ. For this demonstration we use css Grid to center the component
body { min-height: 100vh; display: grid; place-items: center; }
Give some border-radius to the outer div. Adjust some padding to center align the image
I hope you find this helpful π Above all, the solution you submitted is great !
If you find this comment helpful Please tick - 'MARK AS HELPFUL'.
Marked as helpful0 - @Ash3071Posted about 1 year ago
Try justifying and aligning the whole container to center.
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