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 Trendy
- 1. #IDontWantToOverreactBUT 1,156 posts
- 2. #MondayMotivation 37.3K posts
- 3. #maddiekowalski N/A
- 4. Howie 8,535 posts
- 5. Phillips 487K posts
- 6. Hobi 57.9K posts
- 7. Victory Monday 3,798 posts
- 8. Clemens N/A
- 9. Bradley 7,599 posts
- 10. 60 Minutes 131K posts
- 11. Ben Shapiro 6,140 posts
- 12. Good Monday 54.2K posts
- 13. Winthrop 1,701 posts
- 14. $IREN 17.7K posts
- 15. Tomorrow is Election Day 1,763 posts
- 16. Bonnies N/A
- 17. #MondayVibes 3,524 posts
- 18. Mattingly 1,870 posts
- 19. $QURE 2,476 posts
- 20. #BuschPlayoffPush N/A
Something went wrong.
Something went wrong.