3ColumnPreviewCardComponent with button hover outline
Design comparison
Solution retrospective
i need to know is my approach on giving outline when button is in hover state is correct, and how do you make your content center? i try and its work but i want to know how you would approach this, thanks
Community feedback
- Account deleted
Hello,Aldi Anugra Pratama!👋🏻
Congrats on completing this challange!😃
To center a
div
both horizontally and vertically you can useflex
properties. For example , you can useparentElement{ display : flex; flex-direction:column; justify-content:center; align-items:center; }
and this will do the job.For your project you can remove
margin-left
andmargin-right
from your container and try putting the upper code in your body tag.Here the body is the parentElement for your project.You can read this article to know more precisely : https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Aligning_Items_in_a_Flex_Container
Have fun coding.🎉🎉
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