
Solution retrospective
This is my very first project and it definitely not nearly as efficient or clean as it could be, but I am happy I completed my first project since I have been doing nothing but learning theory so far.
What challenges did you encounter, and how did you overcome them?I don't know how to use flexbox or better ways to align boxes and text, so I inefficiently brute forced margins.
What specific areas of your project would you like help with?I need help with learning how to better align text and boxes, and not just brute force margins until they look right.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@huyphan2210
Hi, @Kryalixe
When it comes to aligning elements, here are some approaches you can explore:
- Flexbox
Flexbox is a CSS layout module designed for one-dimensional layouts. It makes it easy to align items vertically and horizontally within a container. You can use properties like justify-content (for horizontal alignment) and align-items (for vertical alignment).
- Grid
CSS Grid is a powerful tool for two-dimensional layouts, allowing you to align elements both vertically and horizontally in a grid structure. With properties like
grid-template-rows
,grid-template-columns
, andplace-items
, it provides precise control over alignment.text-align
This property is commonly used for aligning inline content like text and images within a block-level element. For example,
text-align: center;
centers text horizontally within its container.position
Using positioning (absolute
,relative
,fixed
, orsticky
), you can place elements exactly where you want them. For example, withposition: absolute;
andtop
,left
,right
, orbottom
values, you can align an element to specific points within a container.
Let me know what you think!
Marked as helpful - @carrotass8
The card is too big and the font isn't the same as told to. but overall is good.
Join 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