Coding2GO Tutorials (@codingtogo) header
Coding2GO Tutorials (@codingtogo) profile picture

Daily Posts | Web Dev Tutorials | CSS Tips & Tricks | Coding Projects | (and we also sell courses lol)

Berlin
Joined July 2024
Photo by Coding2GO Tutorials (@codingtogo)Photo by Coding2GO Tutorials (@codingtogo)Photo by Coding2GO Tutorials (@codingtogo)
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)
6
23
1,083
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.
1
1
9
810
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.
11
582