ABBA
@ABBA-74All comments
- @ThomasRibesSubmitted 8 months ago
- @lucasricciSubmitted over 1 year ago
I have a few question regarding my code and its readability:
- Is there something I am overengeneering in the code, like writting more to do the same thing;
- Is the code well readable? Or it is a little nested?
- Tips in how to center and move objects on CSS, this is one of things I found the hardest in front-end.
I appreciate any help on these questions or other feedbacks.
@ABBA-74Posted over 1 year agoCentering and positioning objects on CSS can be tricky, but there are a few tips that can help:
To center an element horizontally, you can use the margin: 0 auto; property on the element's container. To center an element vertically, you can use the display: flex; and align-items: center; properties on the element's container, or use the position: absolute; and top: 50%; properties on the element itself.
Marked as helpful1 - @KatermukkeSubmitted over 1 year ago
- @KatermukkeSubmitted over 1 year ago
- @MarcusXavierrSubmitted over 1 year ago
I've used sass a did a lot of nesting, is this a bad practice?
Also, how can I come up with names for my classes easier?
@ABBA-74Posted over 1 year agoGood job !
There is no rule about nested level in SASS. But I think you should limit to the maximum of 4 levels deep anyway. Some people will tell you 3... By this way, your SASS code will be more readable...
Marked as helpful1