Design comparison
Solution retrospective
Hi, this is my 3rd project on this website and I enjoyed this one a lot! I have a few doubts/questions though:
- Even though I used flex, justify-content and align-items to the center, the 3 columns still 'float' to the top. How could I fix it?
- This time I tried to avoid divs to make it more semantic, is this way correct (main, article etc)?
- Why the corners still have the bottom and top border-radius in the mobile version if I changed it to 0?
- Should I keep the file 'style.css.map' on github? Thanks in advance for taking your time! AG
Community feedback
- @denieldenPosted almost 3 years ago
The element
a
must not appear as a descendant of thebutton
element.To fix this, assign the button's CSS properties in a new class to be assigned to the "a" tag:
not this <button><a href="">Learn More</a></button> but try this <a href="#" class="btn">Learn More</a>
Keep it up!
Marked as helpful0 - @denieldenPosted almost 3 years ago
Hi Aneta, Nice work, congratulations! Very clean code.
The 3 columns remain attached at the top because the flex alignment is based on the size of the container. So you have to give main an accuracy ... in this case the full height of the screen.
Marked as helpful0 - @darryncodesPosted almost 3 years ago
Hey Aneta,
Congrats on working through your 3rd project, great momentum.
Your design looks good - well done!
-
- You need to set the Flexbox properties on the body, and probably
flex-direction: column;
- You need to set the Flexbox properties on the body, and probably
-
- Your semantics look great, I think you should review your accessibility/html report and fix those issues too. Your anchor tag's should be wrapped around the button.
-
- I think you need target the exact same declaration and reset them to 0:
body > main > .one { border-top-left-radius: 0; border-bottom-left-radius: 0;
- I think you need target the exact same declaration and reset them to 0:
-
- I'm not sure on the best practice for the
css.map
, I personally don't keep it - this is interesting
- I'm not sure on the best practice for the
- you might want to add
transition: ease .3s;
to your button styles to make the hover affect a little smoother
Keep coding!
Marked as helpful0@anetaanettePosted almost 3 years ago@darryncodes Thanks a lot, I appreciate your feedback! :)
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