Latest solutions
Latest comments
- @dselimovic02@ParvizAzeroglu
Hello there! Congratulations on sharing your first project. Rest assured, this place has an active and supportive community. You're in good hands! If you have any questions or need assistance, feel free to ask. Happy coding! 🚀
- @Cheosphere@ParvizAzeroglu
Bro, you are crazy 👍👍
- @hdif004@ParvizAzeroglu
I haven't used Tailwind before, but I do it using flex with
align-items: center;
andjustify-content: flex-end;
. If you use flex, it will be responsive, and you can change the icon position as you like. - @Bryan-Giitwa@ParvizAzeroglu
Perfect solutions! Especially the App.js code is cleaner and more readable than mine 😅. So, how did you calculate the day in February, or did you calculate each month as having 31 days like me
- @AnthonyPA0902@ParvizAzeroglu
Generally, I use flex to center items within a container. This means that I write the following code in CSS:
body { display: flex; align-items: center; justify-content: center; height: 100vh; }
However, you can also use
margin: auto;
in the body. Such as :body { margin: auto; height: 100vh; }
But remember that this code is only useful for centering a single item; you can't use it for more than one item.
- @ajeetachal@ParvizAzeroglu
Great solution, Your code is clean and readable 👍