@Rubylenshy
Posted
Hi @uchethecreator ๐, a very nice job you've done here. However, here are some suggestions on how your build-up should look exactly like the design:
- Change
<div class="container"></div>
to<main></main>
tag as this will show that it is the main content of the webpage, do a similar thing to the<div class="attribution"></div>
, change that to a<footer></footer>
tag. - You might wanna add an
alt
attribute to yourimg
tag & check the HTML validation errors on the reports to enhance your code. - You could check out my solution on this same challenge if you wish to make it responsive.
- An easy way to center your container:
.container{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
- You could center a div--with flexbox--just like this:
div{
width: 100%;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
I hope this helps ๐
Keep Coding @uchethecreator
Marked as helpful
@vanzasetia
Posted
@Rubylenshy
Hey, Reuben!
Next time, please avoid asking the solution author to mark your comment as helpful. It is against the community guidelines. Also, it puts unnecessary pressure on the solution author to mark your comment as helpful.
The idea is to give people feedback to offer helpful support without the expectation of anything. If the solution author does mark the comment as helpful, then that's a nice bonus. ๐
@Rubylenshy
Posted
@vanzasetia I'll keep that in mind, thank you. ๐
@vanzasetia
Posted
@Rubylenshy
I recommend using modern CSS techniques such as a grid or flexbox to position the card to the center of the page. Absolute positioning can introduce overflow bugs and it also requires more code to implement.
Other than that, everything else is looking good to me. ๐
@Rubylenshy
Posted
@vanzasetia
Well, that makes the both of us. I actually found it tacky in a page with more contents. Thanks for the recommendation.
@uchethecreator
Posted
@Rubylenshy hello, Thank you for the corrections, I have corrected all errors. Thanks for your contribution, you were helpful.
@Rubylenshy
Posted
@uchethecreator Glad I could be, great job and keep coding