Instantly share code, notes, and snippets.

Hem Plaid Round Sweatshirt Sleeve Long Shirt Paneled Pullover Color Neck Block xCnaHH

Embed
What would you like to do?
CSS3 Box Shadow, only top/right/bottom/left and all
DOCTYPE html>
<html>
<head>
<title>Box Shadowtitle>
<style type="text/css">
Neck Block Sleeve Round Long Shirt Paneled Plaid Hem Pullover Sweatshirt Color Pullover Sleeve Block Shirt Plaid Round Sweatshirt Long Hem Paneled Neck Color .box {
height: 150px;
width: 300px;
margin: 20px;
border: 1px solid #ccc;
}
Hem Round Long Plaid Sleeve Paneled Pullover Shirt Sweatshirt Color Block Neck
.top {
box-shadow: 0 -5px 5px -5px #333;
}
.right {
box-shadow: -5px 0 5px -5px #333;
}
Plaid Neck Sleeve Paneled Round Long Color Hem Shirt Block Sweatshirt Pullover
.bottom {
box-shadow: 0 5px 5px -5px #333;
}
.left {
box-shadow: 5px 0 5px -5px #333;
}
.all {
box-shadow: 0 0 5px Round Color Paneled Shirt Pullover Plaid Long Hem Sweatshirt Block Sleeve Neck #333;
}
</style>
head>
<body>
<div class="box top">div>
<div class="box right">div>
<div class="box bottom">div>
<div class="box leftSleeve Hem Pullover Plaid Shirt Paneled Color Round Block Sweatshirt Long Neck ">div>
<div class="box all">div>
body>
html>

This comment has been minimized.

Pullover Sweatshirt Plaid Color Hem Long Block Sleeve Paneled Shirt Neck Round Show comment
Hide comment

roier on 26 Jul 2012

c': beautiful

roier commented on 26 Jul 2012

c': beautiful

This comment has been minimized.

Show comment
Hide comment

AdrianAntunez on 18 Oct 2012

It's clear now, thanks mate!! :D

AdrianAntunez commented on 18 Oct 2012

It's clear now, thanks mate!! :D

This comment has been minimized.

Show comment
Hide comment

strelok1 on 19 Jul 2013

Pretty sure you have .right and .left mixed up

strelok1 commented on 19 Jul 2013

Pretty sure you have .right and .left mixed up

This comment has been minimized.

Show comment
Hide comment

git-ashish on 11 Sep 2013

nice! agree with strelok1

git-ashish commented on 11 Sep 2013

nice! agree with strelok1

This comment has been minimized.

Show comment
Hide comment

antoniosarco on 5 Feb 2014

More experiment with css box shadow

http://www.corelangs.com/css/box/shadow.html

css tutorial

antoniosarco commented on 5 Feb 2014

More experiment with css box shadow

http://www.corelangs.com/css/box/shadow.html

Hem Neck Sweatshirt Round Plaid Color Paneled Shirt Sleeve Long Block Pullover css tutorial

This comment has been minimized.

Show comment
Hide comment

franciscocorrales on 13 Aug 2014

could you add an image ? of this working. ? Thank you.

could you add an image ? of this working. ? Thank you.

by Romper Boutique Divided H amp;M qIHO5Hfw

This comment has been minimized.

Show comment
Hide comment

mikewasmike commented on 4 Dec 2014

Just what I was looking for, thanks.

This comment has been minimized.

Show comment
Hide comment

VeritoLeon commented on 25 Feb 2015

Thank you!

This comment has been minimized.

Show comment
Hide comment

vc1492a on 8 Mar 2015

Worked for me! Thanks!

vc1492a commented on 8 Mar 2015

Worked for me! Thanks!

This comment has been minimized.

Show comment
Hide comment

This comment has been minimized.

Show comment
Hide comment

roma-sem commented on 11 Feb 2016

Thank you very much! Very neat solution!!!

This comment has been minimized.

Show comment
Hide comment

jorobogdanov on 3 Mar 2016

Really helpful !!!

jorobogdanov commented on 3 Mar 2016

Really helpful !!!

This comment has been minimized.

Show comment
Hide comment

zeckdude on 20 Apr 2016

Very cool! Thanks for sharing! I created a Codepen for the rules and added a few others as well: http://codepen.io/zeckdude/pen/oxywmm

zeckdude commented on 20 Apr 2016

Very cool! Thanks for sharing! I created a Codepen for the rules and added a few others as well: http://codepen.io/zeckdude/pen/oxywmm

This comment has been minimized.

Show comment
Hide comment

sksar Promotion Promotion Elle Promotion Promotion Elle Elle Promotion Elle Elle qBt1wA

A little light shadows..

/* Shadows */
.shadow-top {
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75);
}
.shadow-right {
    box-shadow: 10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-bottom {
    box-shadow: 0 10px 20px -5px rgba(115,115,115,0.75);
}
.shadow-left {
    box-shadow: -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-all {
    box-shadow: 0 0 20px rgba(115,115,115,0.75);
}
.shadow-top-right{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-bottom{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                0 10px 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-left{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-bottom-right{
    box-shadow: 0 10px 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-left-right{
    box-shadow: -10px 0 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-bottom-left{
    box-shadow: 0 10px 20px -5px rgba(115,115,115,0.75),
                -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-bottom-right{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                0 10px 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-bottom-left{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                0 10px 20px -5px rgba(115,115,115,0.75),
                -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-inset {
    box-shadow: inset 0 0 20px rgba(115,115,115,0.75);
}

sksar commented on 22 Jul 2016

A little light shadows..

/* Shadows */
.shadow-top {
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75);
}
.shadow-right {
    box-shadow: 10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-bottom {
    box-shadow: 0 10px 20px -5px rgba(115,115,115,0.75);
}
.shadow-left {
    box-shadow: -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-all {
    box-shadow: 0 0 20px rgba(115,115,115,0.75);
}
.shadow-top-right{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-bottom{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                0 10px 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-left{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-bottom-right{
    box-shadow: 0 10px 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-left-right{
    box-shadow: -10px 0 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-bottom-left{
    box-shadow: 0 10px 20px -5px rgba(115,115,115,0.75),
                -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-bottom-right{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                0 10px 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-bottom-left{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                0 10px 20px -5px rgba(115,115,115,0.75),
                -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-inset {
    box-shadow: inset 0 0 20px rgba(115,115,115,0.75);
}

This comment has been minimized.

Show comment
Hide comment

farskid on 25 Jul 2016

This was always a challenge for me. Thanks

farskid commented on 25 Jul 2016

This was always a challenge for me. Thanks

This comment has been minimized.

Show comment
Hide comment

kevashcraft on 24 Nov 2016

Just what I needed; thank you!!

kevashcraft commented on 24 Nov 2016

Just what I needed; thank you!!

This comment has been minimized.

Show comment
Hide comment
Pullover Hem Shirt Sleeve Block Long Sweatshirt Round Plaid Neck Paneled Color

dididflash commented on 27 Feb 2017

Thanks...
I need this

This comment has been minimized.

Show comment
Hide comment

tapfumamanhanga on 12 May 2017

Thanks it worked for me. Just what I needed

tapfumamanhanga commented on 12 May 2017

Thanks it worked for me. Just what I needed

This comment has been minimized.

Show comment
Hide comment

matiasalafro commented on 23 Aug 2017

This comment has been minimized.

Show comment
Hide comment

susant123 on 10 Dec 2017

This is good except one issue. If two boxes are stacked and you want to add a left or right shadow, there will be gaps like in below screenshot.

with border removed and with darker shade it look like below

susant123 commented on 10 Dec 2017

This is good except one issue. If two boxes are stacked and you want to add a left or right shadow, there will be gaps like in below screenshot.

with border removed and with darker shade it look like below

This comment has been minimized.

Show comment
Hide comment

emiralrashid on 6 May

Great! Thanks for sharing.

emiralrashid commented on 6 May

Great! Thanks for sharing.

This comment has been minimized.

Show comment
Hide comment

lkbhargav on 13 Jun

Perfect! Got it working! Thanks @sksar!

lkbhargav commented on 13 Jun

Perfect! Got it working! Thanks @sksar!

Sweatshirt Round Hem Pullover Paneled Color Long Shirt Block Neck Sleeve Plaid This comment has been minimized.

Show comment
Hide comment

pandyandi on 26 Jul

thanks so much, very usefull!

pandyandi commented on 26 Jul

thanks so much, very usefull!

This comment has been minimized.

Show comment
Hide comment

jcfauchet 2 days ago

Nice ! Thank you for sharing

jcfauchet commented 2 days ago

Nice ! Thank you for sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment