hitmorecode• 6,230
@hitmorecode
Posted
Nice well done. Just a few tips
- You don't need to add
width: 100%;
on the body. By default the width of the body is always 100%.
.section {
display: flex;
/* flex-wrap: wrap; */ /* you don't need this */
column-gap: 10px;
align-items: center; /* add this line to horizontally align the content */
}
Marked as helpful
1
Himanshu_2301• 320
@Himanshu-196018
Posted
@hitmorecode thanks for the tips.
- I will remember to not include width on the body
- Actually I always try to use align-item property first, if its not working only then I try other ways to center the elements.
I would like if you guide me more like this in future.
0
hitmorecode• 6,230
@hitmorecode
Posted
@Himanshu-196018 glad I could help. I'll do my best to help 👍
1