Inspired by @Chrizzly42 and his CSS image, I created another single-div illustration! I will explain to you how to do this. 🚀

Thread 🧵 #100DaysOfCode #CSS #CodeNewbies 1/11
Let's start with defining the boundaries.
Our image have 245px width and 335px height. 2/11
First of all, we need to create a forehead. It's a radial-gradient a little bit bigger than our boundaries. 3/11
Now we need to hide almost half of the circle. 4/11
Let's create a ::before element for a face. A simple rectangle with border-radius. Don't forget to change the colour to black. 😉 5/11
Two radial-gradients for eyes 6/11
Two linear-gradients for nose 7/11
Almost over! Now I created ::after pseudoelement to make a jaw. Another rectangle with border-radius 8/11
Four linear-gradients for teeths 9/11
Thread created with @threadstartio 💕 by @scholz_felix
You can follow @AlbertWalicki.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled:

By continuing to use the site, you are consenting to the use of cookies as explained in our Cookie Policy to improve your experience.