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 Tren
- 1. Broncos 43.6K posts
- 2. Raiders 49.5K posts
- 3. Bo Nix 10.8K posts
- 4. Sean Payton 2,923 posts
- 5. Geno 10.6K posts
- 6. #TNFonPrime 3,118 posts
- 7. Kenny Pickett N/A
- 8. Jeanty 5,430 posts
- 9. #911onABC 24.4K posts
- 10. #WickedOneWonderfulNight 4,049 posts
- 11. Chip Kelly 1,042 posts
- 12. Bradley Beal 1,824 posts
- 13. #RaiderNation 3,148 posts
- 14. Cynthia 43.3K posts
- 15. AJ Cole N/A
- 16. GTA 6 89.2K posts
- 17. Jalen Green 3,302 posts
- 18. eddie 46.6K posts
- 19. Al Michaels N/A
- 20. BYERS 20.1K posts
Something went wrong.
Something went wrong.