As this is my first project, I would love to get some feedback or even critics about my code, since i am new at programming, I would really appreciate all the feedback, especially at common mistakes on coding or even some minor mistakes that may become a bad habit. Thanks in advance.
Saniya Saher
@saniyasaher20All comments
- @BravonoidSubmitted about 3 years ago@saniyasaher20Posted about 3 years ago
I only saw the output result and not the code. But the output is really good. Keep it up! 👍
0 - @DavignzSubmitted about 3 years ago@saniyasaher20Posted about 3 years ago
I think you should add ------------background-repeat: no-repeat;--------------- to the tag where you have applied the background-image. This will help in stopping the repetition of background image.
Marked as helpful0 - @elvladi15Submitted about 3 years ago
Hello! I want to be able to center vertically the container of the card, but I wasn't able to do it. Can someone explain me how to do it?
@saniyasaher20Posted about 3 years agobody{ display: flex; align-items: center; height: 100vh; }
Add these three lines to your body tag to vertically align the .container
Explanation: In your code, body is parent tag of the card( .container ) and card is child. To align the child you can add 'display: flex;' to your parent tag and then use other flex properties to align the child either vertically or horizontally. the next line align-items: center; will align the child means card to center. But make sure you parent have space to give to the child that's why third line comes handy. Add height: 100vh; to body.
Marked as helpful0