Junior network engineer and aspiring full stack web developer with a passion for all things technology and a willingness to learn. I'm always open to learning to new things so if something isn't working as it should please let me know - all feedback is good feedback - thanks in advance🏃♂️👌
Latest solutions
- Submitted over 2 years ago
Responsive light & dark mode landing page using tailwind
#tailwind-css- HTML
- CSS
- JS
Latest comments
- @Peteksi95Submitted over 2 years ago@hyrongennikePosted over 2 years ago
Hi @Peteksi95,
Congrats on completing the challenge
If you want to center the card on the page. You can replace you main rule with the following.
main { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
Hope this is helpful
Marked as helpful0 - @Grimjow-immortalSubmitted over 2 years ago@hyrongennikePosted over 2 years ago
Hi @Grimjow-immortal,
Congrats on completing the challenge
You can center the card with flexbox, replace your body rule with the one below.
body { background-color: hsl(217, 54%, 11%); font-size: 18px; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; }
Hope this is helpful.
Marked as helpful0 - @Marianellag1Submitted over 2 years ago@hyrongennikePosted over 2 years ago
Hi @Marianellag1,
Nice job on the challenge
If you want to center the card on the page, the
margin-top: 12%
on div inside the container div and replace your body rule with the following one.body { margin: 0; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; text-align: left; display: flex; justify-content: center; align-items: center; min-height: 100vh; }
Hope this is helpful
Marked as helpful1 - @joehaddad1000Submitted over 2 years ago@hyrongennikePosted over 2 years ago
Hi @joehaddad1000,
Nice job on the challenge
Just a few suggestion, you can replace your body rule with the following to center and space things out.
body { background-color: var(--Violet); background-image: url("./images/bg-mobile.svg"); background-size: 100%; background-repeat: no-repeat; padding: 2.5rem; color: white; font-family: 'Poppins', sans-serif; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; } main { flex-grow: 2; display: flex; align-items: center; }
Hope this is helpful.
Marked as helpful0 - @barnilsarmaSubmitted over 2 years ago@hyrongennikePosted over 2 years ago
Hi @barnilsarma,
Congrats on completing the challenge
If you want to center the card on the page, you can replace your body rule with the following one.
body { background-color: hsl(216, 12%, 8%); display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; padding: 0 !important; font-family: 'Overpass', sans-serif; }
Also make the thank you card the same size as the rating card.
Hope this is helpful
0 - @therealseanwallaceSubmitted over 2 years ago@hyrongennikePosted over 2 years ago
Hi,
Congrats on completing the challenge
To center the card on the page you can replace you body rule with the following one.
body { min-height: 100vh; background: hsl(185, 41%, 84%); margin: auto; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
Hope this is helpful
1