Latest solutions
Latest comments
- @ThomasRibesSubmitted 12 months ago
- @lucasricciSubmitted almost 2 years ago@ABBA-74Posted almost 2 years ago
Centering 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 almost 2 years ago
- @KatermukkeSubmitted almost 2 years ago
- @MarcusXavierrSubmitted almost 2 years ago@ABBA-74Posted almost 2 years ago
Good 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