Designing Beautiful Shadows in CSS

My favorite kind of blog post is when someone takes a subject that I’ve spent all of five minutes considering and then says—no!—this is an enormous topic worthy of a dissertation. Look at all the things you can do with …


The post Designing Beautiful Shadows in CSS appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.


This content originally appeared on CSS-Tricks and was authored by Robin Rendle

My favorite kind of blog post is when someone takes a subject that I’ve spent all of five minutes considering and then says—no!—this is an enormous topic worthy of a dissertation. Look at all the things you can do with this tiny CSS property!

I was reminded of this when I spotted this post by Josh Comeau about designing beautiful shadows in CSS:

In my humble opinion, the best websites and web applications have a tangible “real” quality to them. There are lots of factors involved to achieve this quality, but shadows are a critical ingredient.

When I look around the web, though, it’s clear that most shadows aren’t as rich as they could be. The web is covered in fuzzy grey boxes that don’t really look much like shadows.

Josh shows the regular old boring shadow approaches and then explores all the ways to improve and optimize them into shadows with real depth. It all comes down to taking a closer look color and exploring the box-shadow CSS property. And speaking of depth, Rob O’Leary’s “Getting Deep Into Shadows” is another comprehensive look at shadows.

I had also completely forgotten about filter: drop-shadow; which is particularly useful on adding shadows to images that you want to throw onto a page. Great stuff all round.

Direct Link to ArticlePermalink


The post Designing Beautiful Shadows in CSS appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.


This content originally appeared on CSS-Tricks and was authored by Robin Rendle


Print Share Comment Cite Upload Translate Updates
APA

Robin Rendle | Sciencx (2021-09-17T22:49:39+00:00) Designing Beautiful Shadows in CSS. Retrieved from https://www.scien.cx/2021/09/17/designing-beautiful-shadows-in-css/

MLA
" » Designing Beautiful Shadows in CSS." Robin Rendle | Sciencx - Friday September 17, 2021, https://www.scien.cx/2021/09/17/designing-beautiful-shadows-in-css/
HARVARD
Robin Rendle | Sciencx Friday September 17, 2021 » Designing Beautiful Shadows in CSS., viewed ,<https://www.scien.cx/2021/09/17/designing-beautiful-shadows-in-css/>
VANCOUVER
Robin Rendle | Sciencx - » Designing Beautiful Shadows in CSS. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/09/17/designing-beautiful-shadows-in-css/
CHICAGO
" » Designing Beautiful Shadows in CSS." Robin Rendle | Sciencx - Accessed . https://www.scien.cx/2021/09/17/designing-beautiful-shadows-in-css/
IEEE
" » Designing Beautiful Shadows in CSS." Robin Rendle | Sciencx [Online]. Available: https://www.scien.cx/2021/09/17/designing-beautiful-shadows-in-css/. [Accessed: ]
rf:citation
» Designing Beautiful Shadows in CSS | Robin Rendle | Sciencx | https://www.scien.cx/2021/09/17/designing-beautiful-shadows-in-css/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.