Submitted over 2 years ago
Responsive sign-up form using CSS grid, flexbox and JS validation
@YayoKB
Design comparison
SolutionDesign
Solution retrospective
- The text in my button is not completely vertically aligned. I think this has to do with setting a height and using padding. What could I do to make it completely central?
- I had to use
margin-top: auto
for my headline element andmargin-bottom: auto
for my description element in order to get both elements vertically aligned in the desktop layout. I useddisplay: flex
for their parent container,.upper-text
, and usedalign-items: center
but had to useflex-direction: column
for them to be on top of one another. Unfortunately, this is what seemed to cause them to be off-center. Is there anything I did wrong here?
Community feedback
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