Skip to content

Instantly share code, notes, and snippets.

@xelipe
Created July 15, 2012 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xelipe/3114831 to your computer and use it in GitHub Desktop.
Save xelipe/3114831 to your computer and use it in GitHub Desktop.
Example of using box-shadow CSS property
<html>
<head>
<style type="text/css">
.box {
width: 100px;
height: 100px;
background: red;
float:left;
margin: 50px;
}
</style>
</head>
<body>
<div class='box' style='box-shadow: 0px 0px 50px blue;'></div>
<div class='box' style='box-shadow: 30px 0px 50px blue;'></div>
<div class='box' style='box-shadow: 20px 20px 20px blue;'></div>
<div class='box' style='box-shadow: 0px 0px 50px blue inset;'></div>
<div class='box' style='box-shadow: 30px 0px 50px blue inset;'></div>
<div class='box' style='box-shadow: 20px 20px 20px blue inset;'></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment