DEV Community

Discussion on: Pixel art with linear-gradient

Collapse
 
jonrandy profile image
Jon Randy 🎖️

Or you could just make a tiny GIF or PNG and stretch it. The amount of CSS you've used would be bigger than said image. You could also pack the image into a data URI

Collapse
 
cgreinhold profile image
Cleyson Reinhold

Yeah, I agree that is not the lightest way of doing it, but it can show us the power of CSS and give us ideas for other use cases. I have used a similar technique to create a multicolor underline on texts which fitted very well.