Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Base Apparel Coming Soon Page with CSS and HTML

alicia 35

@amfosh

Desktop design screenshot for the Base Apparel coming soon page coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I have very little experience with media styles/responsive apps. I would love to know how I could have changed my code to center the mobile h1 text and given more line height to the mobile p-tag text.

Thanks so much!

Community feedback

Shivam 520

@shivjoshi1996

Posted

For the line height, I would simply change your current line height from rem to em, so it takes references the font-size of the p.

To align the h1, I'd add a div around the h1, make it width 100%, and then add text-align centre to the div (though this is a rough guess, I'll try this out myself when I do tyhis challenge and then let you know) :)

0

alicia 35

@amfosh

Posted

@shivjoshi1996 Thanks for your feedback! I'm going to try this!

1
Shivam 520

@shivjoshi1996

Posted

@amfosh No worries! I think I figured out the alignment issue in my solution, feel free to check it out. https://www.frontendmentor.io/solutions/mobilefirst-page-using-css-flexbox-I_Y4yyPd-

0

Please log in to post a comment

Log in with GitHub
Discord logo

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