Design comparison
Solution retrospective
- What could I have done differently without using Bootstrap?
- What is something that needs to be changed about the code?
Community feedback
- @yashgjoshi20Posted over 1 year ago
- You can set the container in the middle of the screen then whatever changes user makes can be added in properties of the styles.css later on to perfect it.
- You can add the .container { display: absolute; top:50%; left: 50%; transform: translate(-50%, -50%); } .
Marked as helpful0 - @Bader-IdrisPosted over 1 year ago
You can set the container in the middle of the screen whatever user changes it when you add these properties to it in CSS:
.container { display: absolute; top:50%; left: 50%; transform: translate(-50%, -50%); }
the new feature is transform, it has many lovely properties you can discover, I personally love itMarked as helpful0 - @layerdbagPosted over 1 year ago
You actually do not need bootstrap for this challenge as it is a single component that can be done using CSS. You could center your component by using:
html, body { min-width: 100%; min-height: 100%; display: flex; justify-content: center; flex-direction column; }
You could also add a box-shadow on the card component to make it look like the design.
.card { box-shadow: 0px 5px 7px var(--color); } /* where --color is your chosen color*/
1 - @layerdbagPosted over 1 year ago
Your solution does not include semantic HTML. For example, you could wrap your component in an article element which will be placed in a main element to make it more semantically acceptable.
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