-
-
Save inscapist/b75bfc7a7052a0aeddda9a16a07c6985 to your computer and use it in GitHub Desktop.
CSS3 Box Shadow, only top/right/bottom/left and all
This file contains hidden or 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> | |
<html> | |
<head> | |
<title>Box Shadow</title> | |
<style> | |
.box { | |
height: 150px; | |
width: 300px; | |
margin: 20px; | |
border: 1px solid #ccc; | |
} | |
.top { | |
box-shadow: 0 -5px 5px -5px #333; | |
} | |
.right { | |
box-shadow: 5px 0 5px -5px #333; | |
} | |
.bottom { | |
box-shadow: 0 5px 5px -5px #333; | |
} | |
.left { | |
box-shadow: -5px 0 5px -5px #333; | |
} | |
.all { | |
box-shadow: 0 0 5px #333; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="box top"></div> | |
<div class="box right"></div> | |
<div class="box bottom"></div> | |
<div class="box left"></div> | |
<div class="box all"></div> | |
</body> | |
</html> |
Author
inscapist
commented
Jan 4, 2022
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment