Design comparison
SolutionDesign
Community feedback
- @anasdwcPosted almost 2 years ago
Hello👋
- You can use Grid or Flex to help you to make layout
Code ⌨️:
body { display: grid; }
Documentation 📓:
-
Grid: A Complete Guide to CSS Grid | CSS-Tricks - CSS-Tricks
-
Instead of using table, use Grid or Flex is helpful and make it easier to create your layout
- Your number of unread notification not change if button clicked
document .querySelector("#read") .addEventListener("click", function handleClick() { document.querySelector(".number").innerHTML = 0; for (let i = 0; i <= 4; i++) { document.querySelectorAll("i")[i].style.color = "white"; document.querySelectorAll(".notification")[i].classList.remove("unread"); } });
- add
innerHTML = 0
make your number change to 0
Feel free to reach me out 🍻
1
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