Coding2GO Tutorials
@codingtogo
Daily Posts | Web Dev Tutorials | CSS Tips & Tricks | Coding Projects | (and we also sell courses lol)
4 STEPS to create a DARKMODE (css only) 1. Use an HTML select option for light/dark mode 2. Define a color-palette using css variables 3. Use the :has selector on the body and detect if the dark option is :checked 4. If it's checked, overwrite the css variables (Tutorial on yt)
Adding gradients to text is very easy. Just apply the gradient to the background of the element. Use `background-clip: text` to ensure the gradient appears only where there's text. Then make the text color transparent so that the gradient becomes visible.
Did you know you can use align-content to center elements vertically? It is now possible to use align-content for normal block-level elements, so you no longer need Flexbox or grid to center an element vertically.
United States Trends
- 1. #AEWDynamite 3,822 posts
- 2. Godzilla 26.2K posts
- 3. Paige 25.7K posts
- 4. #Unrivaled N/A
- 5. Rickea N/A
- 6. Breeze 21.5K posts
- 7. #LetEmKnow 3,342 posts
- 8. #ChicagoMed N/A
- 9. #iubb N/A
- 10. Shabbat 3,847 posts
- 11. Trench 7,815 posts
- 12. Unplanned 3,055 posts
- 13. Phee N/A
- 14. Jalen Duren N/A
- 15. $DUOL 2,906 posts
- 16. Brujas 30.6K posts
- 17. Captain Kangaroo N/A
- 18. Lamine 69.9K posts
- 19. Claudio 50.8K posts
- 20. Queen Aminata N/A
Something went wrong.
Something went wrong.