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)

enter image description here

something this?

jsfiddle here

there bunch of ways achieve this.. set shadow, , overlayed triangle.

enter image description here

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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -