Created
July 15, 2012 03:49
-
-
Save xelipe/3114831 to your computer and use it in GitHub Desktop.
Example of using box-shadow CSS property
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
<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