css - CSS3 - Verticle Angled 80% OUTER Box Shadow -
i know how make box shadow run down element possible have extend down 80% of element instead of entire height of element?
also how make shadow angle out (this thing im struggling most)
something this?
there bunch of ways achieve this.. set shadow, , overlayed triangle.
here alternative without blurred shadow.. http://jsfiddle.net/bheaz/1/
html - pretty simple
<div></div>
css
div { width: 100px; height: 200px; position: relative; border: 1px solid black; box-shadow: 20px -10px 30px black; margin: 40px; } div:after { position: absolute; left: 102px; top: 100px; content: "\a"; width: 0; height: 0; border-bottom: 90px solid white; border-right: 50px solid white; border-top: 90px solid transparent; }
Comments
Post a Comment