Hacker News new | past | comments | ask | show | jobs | submit login

Having a fixed "light position" at top / top-left isn't the only way of getting a mild sunk / popped effect. Using internal and external shadows can get much of the same effect in a way that doesn't have a fixed direction.



Good point. But external shadows pose a problem: pixels outside the original bounding box of the element need to be painted, and may overlap with other elements.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: