Skip to content

Instantly share code, notes, and snippets.

@gnab
Created December 1, 2010 20:44
Show Gist options
  • Save gnab/724185 to your computer and use it in GitHub Desktop.
Save gnab/724185 to your computer and use it in GitHub Desktop.
Downscaled box shadow out of proportions
<!DOCTYPE html>
<html>
<head>
<style>
#box {
background: green;
height: 200px;
margin: 20px;
width: 200px;
-moz-transform: scale(2); /* OK */
-moz-transform: scale(0.5); /* FAIL */
-moz-transform-origin: 0 0;
-moz-box-shadow: 0 0 15px black;
}
</style>
</head>
<body>
<div id="box">
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment