< Back to Frontend Friday Folks Index
< Back to Frontend Friday Folks Index
Ice Cream
Highlighted solution (737 characters)
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
While we can do the popsicle and the stick with border radius, the presented solution shows another way, how to solve this. By using multiple backgrounds, stacked on top of each other, it's possible to create the same effect with gradients.
The <div id="r">
shows the border-radius
approach and the
<div id="y">
is all about using gradients to draw.
MDN has a great explanation for using multiple backgrounds.