Created
December 1, 2009 17:41
-
-
Save erikzaadi/246477 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title>Test Shadow</title> | |
<style type="text/css"> | |
.Shadowed | |
{ | |
-moz-box-shadow: 2px 2px 10px #000; | |
-webkit-box-shadow: 2px 2px 10px #000; | |
-webkit-border-radius: 4px; | |
-moz-border-radius: 4px; | |
padding: 1em; | |
background: #fff; | |
border: 1px solid #ccc; | |
margin:1em; | |
} | |
.Shadowed p | |
{ | |
text-align : left; | |
margin : 0; | |
} | |
.Centered | |
{ | |
text-align:center; | |
display:block; | |
margin : 50 auto auto auto; | |
padding : 1em; | |
} | |
</style> | |
<!--[if IE]> | |
<style type="text/css"> | |
.Shadowed | |
{ | |
filter: | |
progid:DXImageTransform.Microsoft.Shadow(color=#C6C6C6,direction=0,strength=4) | |
progid:DXImageTransform.Microsoft.Shadow(color=#666666,direction=90,strength=7) | |
progid:DXImageTransform.Microsoft.Shadow(color=#666666,direction=180,strength=7) | |
progid:DXImageTransform.Microsoft.Shadow(color=#C6C6C6,direction=270,strength=4); | |
} | |
</style> | |
<![endif]--> | |
</head> | |
<body> | |
<div class="Centered"> | |
<div class="Shadowed"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> | |
</div> | |
<div> | |
Credits to <a href="http://nick-dunn.co.uk/article/cross-browser-drop-shadows-using-pure-css/">Nick Dunn</a> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment