The overlay I'm using in the hover state, for some reason is covering a couple more of pixels than the image, Can anyone spot the issue?
Latest solutions
Frontend Quiz App using JQuerry
#jqueryPSubmitted 3 months agoAny feedback welcome on the structure of the code or anything I can do better!
Password Generator App
PSubmitted 3 months agoI would like to know if my javascript code could be shortened or condense (if it even should be). It certainly works and gets the job done but wondering if it can be written a little more efficiently.
Tip Calculator with Semantic HTML, Flexbox, Javascript
PSubmitted 3 months agoany and all feedback welcome. If there is ways I can refactor or cut down code and combine things, will still maintaining readability, I am open to suggestions!
Time Tracking Dashboard with Semantic HTML, Flexbox, Grid, Json Data
PSubmitted 4 months agoAny feedback is welcome or tips on how to position elements is great. Thanks!
Newsletter Sign Up with Javascript Validation
PSubmitted 4 months agoany feedback on the code or what can be done better is welcome :)
Article Preview Card with Semantic HTML, Flexbox, Javascript
PSubmitted 5 months agoAny feedback on the semantics or anything I can improve in html/css/js :)
Latest comments
- P@MelbitaSubmitted 2 months agoWhat specific areas of your project would you like help with?P@MattJM1007Posted 2 months ago
Hi Melbita! I've come across this in my own projects. I'm not sure the exact reason this happens, I think it has something to do with there being a space for text under the image. But adding a
line-height: 0;
to your .card_image class gets rid of that extra space below the image when the overlay is on.Hope this helps :)
1 - @tflinchSubmitted 2 months agoWhat are you most proud of, and what would you do differently next time?
I am proud i was able to closely mirror the challenge
What challenges did you encounter, and how did you overcome them?Biggest challenge was learning grid. I went to my trusty cheat sheet to learn how to align child elements.
What specific areas of your project would you like help with?I need help learning grid. I wasnt sure to align my first and third card.
.card { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; background: white; border-radius: 10px; box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); padding: 20px; width: 250px; min-height: 200px; border-top: 4px solid transparent; img { align-self: self-end; } } .card:nth-child(1) { grid-column: 2 / 3; grid-row: 1; align-self: center; } .card:nth-child(2) { grid-column: 1; grid-row: 2; } .card:nth-child(3) { grid-column: 2; grid-row: 2; }
P@MattJM1007Posted 2 months agoHi Tommy! Great job working through this project! I'd like to help with your grid question.
In regards to placing the items in the same way as the design, I would make the grid to be 4 rows, instead of 2. This way you can position the items in a staggered way as in the design. I edited your code to add more rows and adjust where each card starts:
.hero { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); gap: 20px; justify-content: center; align-items: center; padding: 40px; padding-inline-start: 150px; @media(width < 760px) { display: flex; flex-direction: column; } .card:nth-child(1) { grid-column: 2 / 3; grid-row: 1 / 2; align-self: center; } .card:nth-child(2) { grid-column: 1; grid-row: 1 / 3; } .card:nth-child(3) { grid-column: 2; grid-row: 1 / 4; } .card:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
Hope this helps!
1 - P@flavin-jrSubmitted 3 months agoP@MattJM1007Posted 3 months ago
Overall great job! I like it. One note is that your error icons when submitting an answer is not working
0 - P@nashrulmalikSubmitted 3 months agoP@MattJM1007Posted 3 months ago
Really great job! I wasn't sure how to add the JS logic to account for how long the password is to determine strength. But I see you did it. Well done!
0 - @StypianSubmitted 7 months agoP@MattJM1007Posted 3 months ago
wow really great job! looks like you really nailed this one!
1 - @MolinaEfSubmitted 4 months agoP@MattJM1007Posted 4 months ago
Really great job! I like that your javascript is very short and simple. My one suggestion would maybe to have the data load when the page loads, as right now it is just empty. Otherwise fantastic work!
0